aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_adhoc.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-08-03 20:48:23 +0200
committerKim Alvefur <zash@zash.se>2018-08-03 20:48:23 +0200
commitfae1c7d48455f7e0f39997c999d395c92e768f39 (patch)
tree4454c3241d0a506309b7a0b66f114701c727a6b1 /plugins/mod_admin_adhoc.lua
parent8de8df075dee9065b278153427e5fb6cbb5b25d7 (diff)
downloadprosody-fae1c7d48455f7e0f39997c999d395c92e768f39.tar.gz
prosody-fae1c7d48455f7e0f39997c999d395c92e768f39.zip
mod_admin_adhoc: Keep options for list-single in 'options' field where they belong
Would previously not work due to #1177
Diffstat (limited to 'plugins/mod_admin_adhoc.lua')
-rw-r--r--plugins/mod_admin_adhoc.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/mod_admin_adhoc.lua b/plugins/mod_admin_adhoc.lua
index 501411a2..45fdf0c4 100644
--- a/plugins/mod_admin_adhoc.lua
+++ b/plugins/mod_admin_adhoc.lua
@@ -325,7 +325,7 @@ local get_online_users_layout = dataforms_new{
{ name = "FORM_TYPE", type = "hidden", value = "http://jabber.org/protocol/admin" };
{ name = "max_items", type = "list-single", label = "Maximum number of users",
- value = { "25", "50", "75", "100", "150", "200", "all" } };
+ options = { "25", "50", "75", "100", "150", "200", "all" } };
{ name = "details", type = "boolean", label = "Show details" };
};
@@ -647,7 +647,10 @@ local shut_down_service_layout = dataforms_new{
{ name = "FORM_TYPE", type = "hidden", value = "http://jabber.org/protocol/admin" };
{ name = "delay", type = "list-single", label = "Time delay before shutting down",
- value = { {label = "30 seconds", value = "30"},
+ value = "5",
+ options = {
+ {label = "5 seconds", value = "5"},
+ {label = "30 seconds", value = "30"},
{label = "60 seconds", value = "60"},
{label = "90 seconds", value = "90"},
{label = "2 minutes", value = "120"},