From e32a3e4a72c121a912cdb8e875b79880510467d8 Mon Sep 17 00:00:00 2001 From: enriquecd Date: Mon, 8 May 2017 13:40:12 +0200 Subject: [PATCH] Make warning a critical limits fields not disabled for admin profile users - #824 --- .../godmode/agentes/module_manager_editor_common.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pandora_console/godmode/agentes/module_manager_editor_common.php b/pandora_console/godmode/agentes/module_manager_editor_common.php index 561266d6df..dbb6db2da0 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_common.php +++ b/pandora_console/godmode/agentes/module_manager_editor_common.php @@ -882,6 +882,9 @@ $(document).ready (function () { $('#dynamic_interval_select').change (function() { disabled_status(disabledBecauseInPolicy); }); + $('#dynamic_interval').change (function() { + disabled_status(disabledBecauseInPolicy); + }); disabled_two_tailed(disabledBecauseInPolicy); $('#checkbox-dynamic_two_tailed').change (function() { @@ -929,7 +932,7 @@ $(document).ready (function () { //readonly and add class input function disabled_status (disabledBecauseInPolicy) { - if($('#dynamic_interval_select').val() != 0){ + if($('#dynamic_interval_select').val() != 0 && $('#dynamic_interval').val() != 0){ $('#text-min_warning').prop('readonly', true); $('#text-min_warning').addClass('readonly'); $('#text-max_warning').prop('readonly', true);