From f2ad2b5ed07a66ab592790bdf116f1db00389d2c Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Tue, 21 Feb 2012 14:05:57 +0000 Subject: [PATCH] 2012-02-21 Miguel de Dios * include/functions_agents.php, godmode/agentes/module_manager_editor_common.php: cleaned source code style. * include/styles/dialog.css: fixed the bad comment lines. * include/styles/pandora.css: fixed the bad comment lines and added the style for the button to save in visual console editor. * images/file.disabled.png: added image file for the button save in the visual console editor. * images/config.disabled.png: fixed the image, now the side is equal to enabled image. * include/functions_visual_map.php, include/ajax/visual_console_builder.ajax.php, godmode/reporting/visual_console_builder.editor.js, godmode/reporting/visual_console_builder.editor.php: added feature the save the movements of items when user want, and added feature the snap to grid the items in visual map, fixed the resize background (in some oldcases didn't run fine). git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5627 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 24 + .../agentes/module_manager_editor_common.php | 4 +- .../visual_console_builder.editor.js | 457 +++++++++++------- .../visual_console_builder.editor.php | 23 +- pandora_console/images/config.disabled.png | Bin 314 -> 418 bytes pandora_console/images/file.disabled.png | Bin 0 -> 422 bytes .../ajax/visual_console_builder.ajax.php | 16 +- pandora_console/include/functions_agents.php | 2 +- .../include/functions_visual_map.php | 40 +- pandora_console/include/styles/dialog.css | 2 +- pandora_console/include/styles/pandora.css | 17 +- 11 files changed, 376 insertions(+), 209 deletions(-) create mode 100644 pandora_console/images/file.disabled.png diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index bc8394e852..e27fabbac2 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,27 @@ +2012-02-21 Miguel de Dios + + * include/functions_agents.php, + godmode/agentes/module_manager_editor_common.php: cleaned source code style. + + * include/styles/dialog.css: fixed the bad comment lines. + + * include/styles/pandora.css: fixed the bad comment lines and added the + style for the button to save in visual console editor. + + * images/file.disabled.png: added image file for the button save in the + visual console editor. + + * images/config.disabled.png: fixed the image, now the side is equal to + enabled image. + + * include/functions_visual_map.php, + include/ajax/visual_console_builder.ajax.php, + godmode/reporting/visual_console_builder.editor.js, + godmode/reporting/visual_console_builder.editor.php: added feature the save + the movements of items when user want, and added feature the snap to grid + the items in visual map, fixed the resize background (in some oldcases + didn't run fine). + 2012-02-21 Junichi Satoh * mobile/operation/agents/view_alerts.php: Fixed sql query error. diff --git a/pandora_console/godmode/agentes/module_manager_editor_common.php b/pandora_console/godmode/agentes/module_manager_editor_common.php index 89eb7cd7f0..d4795ba010 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_common.php +++ b/pandora_console/godmode/agentes/module_manager_editor_common.php @@ -293,7 +293,7 @@ $(document).ready (function () { $("#right").click (function () { jQuery.each($("select[name='id_tag_available[]'] option:selected"), function (key, value) { tag_name = $(value).html(); - if (tag_name != ){ + if (tag_name != ) { id_tag = $(value).attr('value'); $("select[name='id_tag_selected[]']").append($("").val(id_tag).html('' + tag_name + '')); $("#id_tag_available").find("option[value='" + id_tag + "']").remove(); @@ -303,7 +303,7 @@ $(document).ready (function () { $("#left").click (function () { jQuery.each($("select[name='id_tag_selected[]'] option:selected"), function (key, value) { tag_name = $(value).html(); - if (tag_name != ){ + if (tag_name != ) { id_tag = $(value).attr('value'); $("select[name='id_tag_available[]']").append($("