Software /
code /
prosody
Comparison
plugins/mod_admin_adhoc.lua @ 9085:9bd38bbf8623
mod_admin_adhoc: Keep options for list-single in 'options' field where they belong
Would previously not work due to #1177
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 03 Aug 2018 20:48:23 +0200 |
parent | 8773:a785b1050644 |
child | 9086:74b4be5afb74 |
comparison
equal
deleted
inserted
replaced
9084:572b6858db03 | 9085:9bd38bbf8623 |
---|---|
323 title = "Getting List of Online Users"; | 323 title = "Getting List of Online Users"; |
324 instructions = "How many users should be returned at most?"; | 324 instructions = "How many users should be returned at most?"; |
325 | 325 |
326 { name = "FORM_TYPE", type = "hidden", value = "http://jabber.org/protocol/admin" }; | 326 { name = "FORM_TYPE", type = "hidden", value = "http://jabber.org/protocol/admin" }; |
327 { name = "max_items", type = "list-single", label = "Maximum number of users", | 327 { name = "max_items", type = "list-single", label = "Maximum number of users", |
328 value = { "25", "50", "75", "100", "150", "200", "all" } }; | 328 options = { "25", "50", "75", "100", "150", "200", "all" } }; |
329 { name = "details", type = "boolean", label = "Show details" }; | 329 { name = "details", type = "boolean", label = "Show details" }; |
330 }; | 330 }; |
331 | 331 |
332 local get_online_users_result_layout = dataforms_new{ | 332 local get_online_users_result_layout = dataforms_new{ |
333 { name = "FORM_TYPE", type = "hidden", value = "http://jabber.org/protocol/admin" }; | 333 { name = "FORM_TYPE", type = "hidden", value = "http://jabber.org/protocol/admin" }; |
645 title = "Shutting Down the Service"; | 645 title = "Shutting Down the Service"; |
646 instructions = "Fill out this form to shut down the service."; | 646 instructions = "Fill out this form to shut down the service."; |
647 | 647 |
648 { name = "FORM_TYPE", type = "hidden", value = "http://jabber.org/protocol/admin" }; | 648 { name = "FORM_TYPE", type = "hidden", value = "http://jabber.org/protocol/admin" }; |
649 { name = "delay", type = "list-single", label = "Time delay before shutting down", | 649 { name = "delay", type = "list-single", label = "Time delay before shutting down", |
650 value = { {label = "30 seconds", value = "30"}, | 650 value = "5", |
651 options = { | |
652 {label = "5 seconds", value = "5"}, | |
653 {label = "30 seconds", value = "30"}, | |
651 {label = "60 seconds", value = "60"}, | 654 {label = "60 seconds", value = "60"}, |
652 {label = "90 seconds", value = "90"}, | 655 {label = "90 seconds", value = "90"}, |
653 {label = "2 minutes", value = "120"}, | 656 {label = "2 minutes", value = "120"}, |
654 {label = "3 minutes", value = "180"}, | 657 {label = "3 minutes", value = "180"}, |
655 {label = "4 minutes", value = "240"}, | 658 {label = "4 minutes", value = "240"}, |