mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Fixed problem with massive operations (modules section)
This commit is contained in:
parent
ae9abbeed7
commit
9f0de9526f
@ -298,8 +298,8 @@ $table->data['form_agents_1'][0] = __('Agent group');
|
|||||||
$groups = users_get_groups ($config["id_user"], "AW", false);
|
$groups = users_get_groups ($config["id_user"], "AW", false);
|
||||||
$groups[0] = __('All');
|
$groups[0] = __('All');
|
||||||
$table->colspan['form_agents_1'][1] = 2;
|
$table->colspan['form_agents_1'][1] = 2;
|
||||||
$table->data['form_agents_1'][1] = html_print_select ($groups, 'groups_select',
|
$table->data['form_agents_1'][1] = html_print_select_groups (false, 'AW', true, 'groups_select',
|
||||||
'', true, __('Select'), -1, true, false, true, '', false, 'width:100%').
|
'', false, '', '', true) .
|
||||||
' ' . __('Group recursion') . ' ' .
|
' ' . __('Group recursion') . ' ' .
|
||||||
html_print_checkbox ("recursion", 1, false, true, false);
|
html_print_checkbox ("recursion", 1, false, true, false);
|
||||||
$table->data['form_agents_1'][3] = __('Select all modules of this group') . ' ' .
|
$table->data['form_agents_1'][3] = __('Select all modules of this group') . ' ' .
|
||||||
@ -504,6 +504,14 @@ $(document).ready (function () {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var recursion;
|
||||||
|
|
||||||
|
$("#checkbox-recursion").click(function () {
|
||||||
|
recursion = this.checked ? 1 : 0;
|
||||||
|
|
||||||
|
$("#groups_select").trigger("change");
|
||||||
|
});
|
||||||
|
|
||||||
$("#groups_select").change (
|
$("#groups_select").change (
|
||||||
function () {
|
function () {
|
||||||
$('#checkbox-force_group').attr('checked', false);
|
$('#checkbox-force_group').attr('checked', false);
|
||||||
@ -522,8 +530,7 @@ $(document).ready (function () {
|
|||||||
jQuery.post ("ajax.php",
|
jQuery.post ("ajax.php",
|
||||||
{"page" : "operation/agentes/ver_agente",
|
{"page" : "operation/agentes/ver_agente",
|
||||||
"get_agents_group_json" : 1,
|
"get_agents_group_json" : 1,
|
||||||
"recursion" : $("#checkbox-recursion")
|
"recursion" : recursion,
|
||||||
.attr("checked") ? 1 : 0,
|
|
||||||
"id_group" : this.value,
|
"id_group" : this.value,
|
||||||
"privilege" : "AW",
|
"privilege" : "AW",
|
||||||
status_agents: function () {
|
status_agents: function () {
|
||||||
|
@ -288,8 +288,8 @@ $table->data['form_agents_1'][0] = __('Agent group');
|
|||||||
$groups = groups_get_all(true);
|
$groups = groups_get_all(true);
|
||||||
$groups[0] = __('All');
|
$groups[0] = __('All');
|
||||||
$table->colspan['form_agents_1'][1] = 2;
|
$table->colspan['form_agents_1'][1] = 2;
|
||||||
$table->data['form_agents_1'][1] = html_print_select ($groups, 'groups_select',
|
$table->data['form_agents_1'][1] = html_print_select_groups (false, 'AW', true, 'groups_select',
|
||||||
'', true, __('Select'), -1, true, false, true) .
|
'', false, '', '', true) .
|
||||||
' ' . __('Group recursion') . ' ' .
|
' ' . __('Group recursion') . ' ' .
|
||||||
html_print_checkbox ("recursion", 1, false, true, false);
|
html_print_checkbox ("recursion", 1, false, true, false);
|
||||||
$table->data['form_agents_1'][3] = __('Select all modules of this group') . ' ' .
|
$table->data['form_agents_1'][3] = __('Select all modules of this group') . ' ' .
|
||||||
@ -900,6 +900,14 @@ $(document).ready (function () {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var recursion;
|
||||||
|
|
||||||
|
$("#checkbox-recursion").click(function () {
|
||||||
|
recursion = this.checked ? 1 : 0;
|
||||||
|
|
||||||
|
$("#groups_select").trigger("change");
|
||||||
|
});
|
||||||
|
|
||||||
$("#groups_select").change (
|
$("#groups_select").change (
|
||||||
function () {
|
function () {
|
||||||
|
|
||||||
@ -937,7 +945,7 @@ $(document).ready (function () {
|
|||||||
jQuery.post ("ajax.php",
|
jQuery.post ("ajax.php",
|
||||||
{"page" : "operation/agentes/ver_agente",
|
{"page" : "operation/agentes/ver_agente",
|
||||||
"get_agents_group_json" : 1,
|
"get_agents_group_json" : 1,
|
||||||
"recursion" : $("#checkbox-recursion").attr ("checked") ? 1 : 0,
|
"recursion" : recursion,
|
||||||
"id_group" : this.value,
|
"id_group" : this.value,
|
||||||
status_agents: function () {
|
status_agents: function () {
|
||||||
return $("#status_agents").val();
|
return $("#status_agents").val();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user