diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 5ba5570a89..84506ab276 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2014-03-05 Miguel de Dios + + * include/ajax/module.php: fixed the ajax calls for to get json + data. + + Incident: #619 + 2014-03-05 Sergio Martin * pandoradb.sql diff --git a/pandora_console/include/ajax/module.php b/pandora_console/include/ajax/module.php index a9f604b4d9..eb2ec27424 100644 --- a/pandora_console/include/ajax/module.php +++ b/pandora_console/include/ajax/module.php @@ -16,6 +16,7 @@ global $config; + include_once($config['homedir'] . "/include/functions_agents.php"); include_once($config['homedir'] . "/include/functions_ui.php"); enterprise_include_once ('include/functions_metaconsole.php'); @@ -33,11 +34,6 @@ if ($get_plugin_macros) { return; } -ui_require_jquery_file ("ui-timepicker-addon"); -// This script is included manually to be included after jquery and avoid error -echo ''; -ui_require_jquery_file("ui.datepicker-" . get_user_language(), "include/javascript/i18n/"); - $search_modules = get_parameter('search_modules'); if ($search_modules) { @@ -61,6 +57,13 @@ $get_module_detail = get_parameter ('get_module_detail', 0); if ($get_module_detail) { + ui_require_jquery_file ("ui-timepicker-addon"); + // This script is included manually to be included after jquery and avoid error + echo ''; + ui_require_jquery_file("ui.datepicker-" . get_user_language(), "include/javascript/i18n/"); + $module_id = get_parameter ('id_module'); $period = get_parameter ("period", 86400); $group = agents_get_agentmodule_group ($module_id);