From 1ff9b8c4201d3118d2e48c57a645704086577a87 Mon Sep 17 00:00:00 2001 From: "edu.corral" Date: Fri, 4 Nov 2022 09:45:06 +0100 Subject: [PATCH] ent 7914 time based status scaling components --- .../modules/manage_network_components_form_common.php | 8 ++------ pandora_console/include/javascript/pandora_modules.js | 10 ++++++++++ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/pandora_console/godmode/modules/manage_network_components_form_common.php b/pandora_console/godmode/modules/manage_network_components_form_common.php index 9dd1120c3c..f7890712b3 100644 --- a/pandora_console/godmode/modules/manage_network_components_form_common.php +++ b/pandora_console/godmode/modules/manage_network_components_form_common.php @@ -204,12 +204,8 @@ $table->data[5][1] .= html_print_input_text( $warning_time, '', 5, - 255, - true, - $disabledBecauseInPolicy, - false, - '', - $classdisabledBecauseInPolicy + 15, + true ); $table->data[5][1] .= '  '.__('intervals in warning status.').''; diff --git a/pandora_console/include/javascript/pandora_modules.js b/pandora_console/include/javascript/pandora_modules.js index cbacab3f51..b626a8f969 100644 --- a/pandora_console/include/javascript/pandora_modules.js +++ b/pandora_console/include/javascript/pandora_modules.js @@ -170,6 +170,11 @@ function configure_modules_form() { data["dynamic_min"] == 0 ? 0 : data["dynamic_min"] ); + $("#text-warning_time").attr( + "value", + data["warning_time"] == 0 ? 0 : data["warning_time"] + ); + if (data["dynamic_two_tailed"]) $("#checkbox-dynamic_two_tailed").check(); else $("#checkbox-dynamic_two_tailed").uncheck(); @@ -461,6 +466,11 @@ function configure_modules_form() { $("#post_process_default").hide(); } + $("#text-warning_time").attr( + "value", + data["warning_time"] == 0 ? 0 : data["warning_time"] + ); + $("#text-post_process_text").attr( "value", data["post_process"] == 0 ? 0 : data["post_process"]