From 93f7a3cef7b792d9f49fe7fd9539829df74d6730 Mon Sep 17 00:00:00 2001 From: daniel Date: Fri, 3 Mar 2017 10:51:19 +0100 Subject: [PATCH] fixed errors in dynamic treshold --- .../godmode/agentes/module_manager_editor_common.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pandora_console/godmode/agentes/module_manager_editor_common.php b/pandora_console/godmode/agentes/module_manager_editor_common.php index 45c1ec20a1..561266d6df 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_common.php +++ b/pandora_console/godmode/agentes/module_manager_editor_common.php @@ -885,7 +885,6 @@ $(document).ready (function () { disabled_two_tailed(disabledBecauseInPolicy); $('#checkbox-dynamic_two_tailed').change (function() { - console.log('enter'); disabled_two_tailed(disabledBecauseInPolicy); }); @@ -954,16 +953,14 @@ function disabled_status (disabledBecauseInPolicy) { } function disabled_two_tailed (disabledBecauseInPolicy) { - console.log('entra a la funcion'); if($('#checkbox-dynamic_two_tailed').prop('checked')){ - $('#text-dynamic_max').prop('readonly', true); - $('#text-dynamic_max').addClass('readonly'); + $('#text-dynamic_max').prop('readonly', false); + $('#text-dynamic_max').removeClass('readonly'); } else{ - console.log('no'); if (disabledBecauseInPolicy == 0){ - $('#text-dynamic_max').prop('readonly', false); - $('#text-dynamic_max').removeClass('readonly'); + $('#text-dynamic_max').prop('readonly', true); + $('#text-dynamic_max').addClass('readonly'); } } }