From 2f2a456e10acb569eaf5ebdefd72d9e9cabe893e Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Wed, 28 Aug 2013 07:53:50 +0000 Subject: [PATCH] 2013-08-28 Miguel de Dios * godmode/agentes/module_manager_editor.php, include/javascript/pandora_modules.js: implemented the disabled unknown events for local modules. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8704 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ .../godmode/agentes/module_manager_editor.php | 3 +++ pandora_console/include/javascript/pandora_modules.js | 9 +++++++-- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 20f8b67d02..3f7b68b4aa 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2013-08-28 Miguel de Dios + + * godmode/agentes/module_manager_editor.php, + include/javascript/pandora_modules.js: implemented the disabled + unknown events for local modules. + 2013-08-28 Miguel de Dios * godmode/agentes/agent_manager.php: fixed the PHP warnings in the diff --git a/pandora_console/godmode/agentes/module_manager_editor.php b/pandora_console/godmode/agentes/module_manager_editor.php index d548b75aec..b314da74cd 100644 --- a/pandora_console/godmode/agentes/module_manager_editor.php +++ b/pandora_console/godmode/agentes/module_manager_editor.php @@ -89,6 +89,9 @@ if (is_ajax ()) { break; } + $component['throw_unknown_events'] = + !local_components_is_disable_type_event($id_component, EVENTS_GOING_UNKNOWN); + echo json_encode ($component); return; } diff --git a/pandora_console/include/javascript/pandora_modules.js b/pandora_console/include/javascript/pandora_modules.js index 6ad8b3cd0e..30904f9449 100644 --- a/pandora_console/include/javascript/pandora_modules.js +++ b/pandora_console/include/javascript/pandora_modules.js @@ -185,6 +185,11 @@ function configure_modules_form () { } } + if (data["throw_unknown_events"]) + $("input[name='throw_unknown_events']").check(); + else + $("input[name='throw_unknown_events']").uncheck(); + // Delete macro fields $('.macro_field').remove(); @@ -351,9 +356,9 @@ function configure_modules_form () { } if (data["throw_unknown_events"]) - $("input[name='throw_unknown_events']").check (); + $("input[name='throw_unknown_events']").check(); else - $("input[name='throw_unknown_events']").uncheck (); + $("input[name='throw_unknown_events']").uncheck(); }, "json" );