From 725c5d964c06a2e96a263089dfff7db49cb26886 Mon Sep 17 00:00:00 2001 From: Jorge Rincon Date: Thu, 7 Dec 2023 13:09:42 +0100 Subject: [PATCH] #12620 fixed blacklist items in setup --- pandora_console/godmode/setup/setup_general.php | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/pandora_console/godmode/setup/setup_general.php b/pandora_console/godmode/setup/setup_general.php index 56596af445..0da72eacb0 100644 --- a/pandora_console/godmode/setup/setup_general.php +++ b/pandora_console/godmode/setup/setup_general.php @@ -1113,9 +1113,9 @@ $(document).ready (function () { id_imodule = $(value).attr('value'); $("select[name='inventory_changes_blacklist[]']") .append( - $("") + $("") .val(id_imodule) - .html('' + imodule_name + '') + .text(imodule_name) ); $("#inventory_changes_blacklist_out") .find("option[value='" + id_imodule + "']").remove(); @@ -1141,7 +1141,7 @@ $(document).ready (function () { .append( $("") .val(id_imodule) - .html('' + imodule_name + '') + .text(imodule_name) ); $("#inventory_changes_blacklist") .find("option[value='" + id_imodule + "']").remove(); @@ -1157,12 +1157,15 @@ $(document).ready (function () { } } }); + + $("#inventory_changes_blacklist > option").each(function(key, value) { + $(value).prop('selected',true).trigger('change'); + }); + }); - $("#submit-update_button").click(function () { - $('#inventory_changes_blacklist option').map(function(){ - $(this).prop('selected', true); - }); + $("#inventory_changes_blacklist > option").each(function(key, value) { + $(value).prop('selected',true).trigger('change'); }); });