diff --git a/ajaxui/ajaxui_config_channels.c b/ajaxui/ajaxui_config_channels.c
index 63aac268..ffb5b93a 100644
--- a/ajaxui/ajaxui_config_channels.c
+++ b/ajaxui/ajaxui_config_channels.c
@@ -284,7 +284,8 @@ ajax_chgroup_editor(http_connection_t *hc, http_reply_t *hr,
/* Invoke AJAX call containing all selected elements */
tcp_qprintf(tq,
- "select_do = function(op, arg1, arg2) {\r\n"
+ "select_do = function(op, arg1, arg2, check) {\r\n"
+ "if(check == true && !confirm(\"Are you sure?\")) {return;}\r\n"
"var h = new Hash();\r\n"
"h.set('arg1', arg1);\r\n"
"h.set('arg2', arg2);\r\n"
@@ -335,28 +336,33 @@ ajax_chgroup_editor(http_connection_t *hc, http_reply_t *hr,
tcp_qprintf(tq, "");
tcp_qprintf(tq, "
\r\n");
- tcp_qprintf(tq, "");
- tcp_qprintf(tq, "
Select:
");
-
- ajax_a_jsfuncf(tq, "All", "select_all();");
- tcp_qprintf(tq, " / ");
- ajax_a_jsfuncf(tq, "None", "select_none();");
- tcp_qprintf(tq, " / ");
- ajax_a_jsfuncf(tq, "Invert", "select_invert();");
-
- tcp_qprintf(tq, "
\r\n");
-
-
- tcp_qprintf(tq, "");
+ ajax_button(tq, "Select all", "select_all()");
+ ajax_button(tq, "Select none", "select_none()");
+ tcp_qprintf(tq, "
\r\n");
+
+ tcp_qprintf(tq, "
\r\n");
+
+ tcp_qprintf(tq, "");
+
+ ajax_button(tq,
+ "Delete all selected...",
+ "select_do('delete', '%d', 0, true);", tcg->tcg_tag);
+
+ tcp_qprintf(tq, "
\r\n");
+
+
+ tcp_qprintf(tq, "
");
tcp_qprintf(tq,
- "
Move to group:
"
- "
"
"