2013-08-28 Miguel de Dios <miguel.dedios@artica.es>

* 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
This commit is contained in:
mdtrooper 2013-08-28 07:53:50 +00:00
parent a151bfaf23
commit 2f2a456e10
3 changed files with 16 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2013-08-28 Miguel de Dios <miguel.dedios@artica.es>
* 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 <miguel.dedios@artica.es>
* godmode/agentes/agent_manager.php: fixed the PHP warnings in the

View File

@ -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;
}

View File

@ -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"
);