From 2b0e1f0f78c0d184f34d729c22cf2b77298f794e Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Tue, 18 Aug 2009 08:37:16 +0000 Subject: [PATCH] 2009-08-18 Miguel de Dios * ChangeLog: add comments of last commits, I forget update file. * godmode/reporting/map_builder.php: add check in javascript for form for to catch the try to save a item without name and withnout image. Fixes: 2815062 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1856 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 28 +++++++++++++++++++ .../godmode/reporting/map_builder.php | 15 +++++++++- 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 8417e93346..8138171b1a 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,31 @@ +2009-08-18 Miguel de Dios + * ChangeLog: add comments of last commits, I forget update file. + + * godmode/reporting/map_builder.php: add check in javascript for form for to + catch the try to save a item without name and withnout image. + Fixes: 2815062 + +2009-08-17 Miguel de Dios + + * include/functions_db.php, godmode/alerts/configure_alert_compound.php: + add function "get_agent_module_id" for optain id_agent from id_agent_module. + And add new column in correlation condition that containts the name (and + link) of agent. And change ajax of page for show this column in the search + form in the bottom. + Fixes: 2838000 + +2009-08-17 Miguel de Dios + + * godmode/reporting/map_builder.php: totaly fix the bug of map builder, now + you can use new ajax input to search the agent for item map. + Fixes: 2838013 + +2009-08-17 Miguel de Dios + + * godmode/reporting/map_builder.php: partially fix the bug ID: 2838013, now + you can move the items in the map and Pandora console save the position. But + the edition of item data is'nt working although I am working in it. + 2009-08-14 Miguel de Dios * godmode/agentes/agent_manager.php, godmode/agentes/massive_config.php, diff --git a/pandora_console/godmode/reporting/map_builder.php b/pandora_console/godmode/reporting/map_builder.php index 485b63e48b..7ba554f91f 100644 --- a/pandora_console/godmode/reporting/map_builder.php +++ b/pandora_console/godmode/reporting/map_builder.php @@ -495,7 +495,20 @@ var id_agent_module = 0; function testAgentCorrect() { if (selectAgent) return true; else { - alert (""); + if ($("#type").val() == 0) { + text_label = $("#text-label").val(); + image = $("#image").val(); + if (($("#text-label").val().length == 0) && + ($("#image").val().length == 0)) { + + alert(""); + return false; + } + else + return true; + } + else + alert (""); return false; } }