From 447655409ddd4f16ef16df6a53723ca4f977049d Mon Sep 17 00:00:00 2001 From: Daniel Barbero Date: Fri, 5 Apr 2019 09:27:46 +0200 Subject: [PATCH] fixed minor error keep counters local and network components Former-commit-id: 8d57bede6ea7c6f44d51a696a3257600410734fe --- pandora_console/include/javascript/pandora_modules.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/javascript/pandora_modules.js b/pandora_console/include/javascript/pandora_modules.js index abc91ce532..7d81facfe8 100644 --- a/pandora_console/include/javascript/pandora_modules.js +++ b/pandora_console/include/javascript/pandora_modules.js @@ -420,7 +420,12 @@ function configure_modules_form() { "value", data["min_ff_event_critical"] == 0 ? 0 : data["min_ff_event_critical"] ); - $("#checkbox-ff_type").prop("checked", data["ff_type"]); + + if (data["ff_type"] != 0) { + $("#checkbox-ff_type").prop("checked", 1); + } else { + $("#checkbox-ff_type").prop("checked", 0); + } // Shows manual input if post_process field is setted if (data["post_process"] != 0) {