From c2bb42b68188e63282be0dd84f17126874deab1f Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Wed, 17 Aug 2016 10:49:01 +0200 Subject: [PATCH] Fixed problem with charge agents when select 'Agents firts in module bulk actions'. Tiquet: #3568 --- .../godmode/massive/massive_delete_modules.php | 9 +++++---- .../godmode/massive/massive_edit_modules.php | 13 +++++++------ 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/pandora_console/godmode/massive/massive_delete_modules.php b/pandora_console/godmode/massive/massive_delete_modules.php index cb4d60aba2..88951658f0 100644 --- a/pandora_console/godmode/massive/massive_delete_modules.php +++ b/pandora_console/godmode/massive/massive_delete_modules.php @@ -486,12 +486,13 @@ $(document).ready (function () { clean_lists(); if (selector == 'agents') { - $(".select_modules_row").css('display', 'none'); - $(".select_agents_row").css('display', ''); + $(".select_modules_row").hide(); + $(".select_agents_row").show(); + $("#groups_select").trigger("change"); } else if (selector == 'modules') { - $(".select_agents_row").css('display', 'none'); - $(".select_modules_row").css('display', ''); + $(".select_agents_row").hide(); + $(".select_modules_row").show(); } }); diff --git a/pandora_console/godmode/massive/massive_edit_modules.php b/pandora_console/godmode/massive/massive_edit_modules.php index 3a7ac45374..decb1a7272 100644 --- a/pandora_console/godmode/massive/massive_edit_modules.php +++ b/pandora_console/godmode/massive/massive_edit_modules.php @@ -846,13 +846,14 @@ $(document).ready (function () { selector = this.value; clean_lists(); - if(selector == 'agents') { - $(".select_modules_row").css('display', 'none'); - $(".select_agents_row").css('display', ''); + if (selector == 'agents') { + $(".select_modules_row").hide(); + $(".select_agents_row").show(); + $("#groups_select").trigger("change"); } - else if(selector == 'modules') { - $(".select_agents_row").css('display', 'none'); - $(".select_modules_row").css('display', ''); + else if (selector == 'modules') { + $(".select_agents_row").hide(); + $(".select_modules_row").show(); } });