From 61dd7402a472a766ca3f40053c88cf407786925c Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Mon, 24 Jun 2013 12:42:47 +0000 Subject: [PATCH] 2013-06-24 Miguel de Dios * godmode/reporting/visual_console_builder.editor.js: fixed the removed the relantionship between items. MERGED FROM THE BRANCH PANDORA_4.0 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8383 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 7 +++++++ .../godmode/reporting/visual_console_builder.editor.js | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index d0fa995043..6b5f25b1fd 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2013-06-24 Miguel de Dios + + * godmode/reporting/visual_console_builder.editor.js: fixed the + removed the relantionship between items. + + MERGED FROM THE BRANCH PANDORA_4.0 + 2013-06-24 Miguel de Dios * godmode/reporting/visual_console_builder.editor.js: fixed the diff --git a/pandora_console/godmode/reporting/visual_console_builder.editor.js b/pandora_console/godmode/reporting/visual_console_builder.editor.js index a22d90ac18..0246622f42 100644 --- a/pandora_console/godmode/reporting/visual_console_builder.editor.js +++ b/pandora_console/godmode/reporting/visual_console_builder.editor.js @@ -1343,12 +1343,21 @@ function updateDB_visual(type, idElement , values, event, top, left) { $("#" + idElement).css('left', '0px').css('left', left + 'px'); } $("#" + idElement).css('color', values['label_color']); + + //Update the lines + end_foreach = false; found = false; jQuery.each(lines, function(i, line) { + if (end_foreach) { + return; + } + if (lines[i]['node_begin'] == idElement) { found = true; if (values['parent'] == 0) { + //Erased the line lines.splice(i); + end_foreach = true; } else { if ((typeof(values['mov_left']) == 'undefined') &&