diff --git a/pandora_console/godmode/reporting/visual_console_builder.editor.js b/pandora_console/godmode/reporting/visual_console_builder.editor.js index 619d91df33..1bc6eb192b 100755 --- a/pandora_console/godmode/reporting/visual_console_builder.editor.js +++ b/pandora_console/godmode/reporting/visual_console_builder.editor.js @@ -1917,6 +1917,9 @@ function updateDB_visual(type, idElement , values, event, top, left) { $("#background").css('height', values['height'] + 'px'); } break; + case 'service': + refresh_lines(lines, 'background', true); + break; } draw_user_lines("", 0, 0, 0 , 0, 0, true); diff --git a/pandora_console/operation/visual_console/public_console.php b/pandora_console/operation/visual_console/public_console.php index 01a85c1544..9852d13683 100755 --- a/pandora_console/operation/visual_console/public_console.php +++ b/pandora_console/operation/visual_console/public_console.php @@ -160,5 +160,9 @@ $(document).ready (function () { } ?> }); + +$(window).load(function() { + draw_lines (lines, 'layout_map'); +}); /* ]]> */ diff --git a/pandora_console/operation/visual_console/render_view.php b/pandora_console/operation/visual_console/render_view.php index 653c73285a..048f2e5f85 100755 --- a/pandora_console/operation/visual_console/render_view.php +++ b/pandora_console/operation/visual_console/render_view.php @@ -268,5 +268,11 @@ ui_require_javascript_file ('pandora_visual_console'); } ?> }); + + $(window).load(function() { + if (typeof(lines) != 'undefined') { + draw_lines (lines, 'layout_map'); + } + }); /* ]]> */