From 8348c9f5fc6d6e00c141da719288a58b3064ec4e Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Mon, 13 Oct 2014 16:50:24 +0200 Subject: [PATCH] Fixed the show plugin parameters field into the policy module form. --- .../godmode/agentes/module_manager_editor_plugin.php | 9 +++++++++ pandora_console/include/javascript/pandora_modules.js | 7 +++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/pandora_console/godmode/agentes/module_manager_editor_plugin.php b/pandora_console/godmode/agentes/module_manager_editor_plugin.php index 48499b7a89..d603a5c9c5 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_plugin.php +++ b/pandora_console/godmode/agentes/module_manager_editor_plugin.php @@ -105,7 +105,16 @@ if (!empty($macros)) { ?> diff --git a/pandora_console/include/javascript/pandora_modules.js b/pandora_console/include/javascript/pandora_modules.js index e5c7c73843..94b9b0d549 100644 --- a/pandora_console/include/javascript/pandora_modules.js +++ b/pandora_console/include/javascript/pandora_modules.js @@ -225,6 +225,7 @@ function configure_modules_form () { network_component_group_change_event(); + flag_load_plugin_component = false; $("#network_component").change (function () { if (this.value == 0) return; @@ -237,6 +238,8 @@ function configure_modules_form () { "id_module_component" : this.value }, function (data, status) { + flag_load_plugin_component = true; + $("#text-name").attr ("value", js_html_entity_decode (data["name"])); $("#textarea_description").attr ("value", js_html_entity_decode (data["description"])); $("#id_module_type").val(data["type"]); @@ -360,10 +363,6 @@ function configure_modules_form () { } } - if (data["id_modulo"] == 4) { - changePluginSelect(); - } - if (data["throw_unknown_events"]) $("input[name='throw_unknown_events']").check(); else