From 4557e364b92daf265ab4c7961b1682a66f33c34a Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Thu, 1 Aug 2013 09:01:31 +0000 Subject: [PATCH] 2013-08-01 Miguel de Dios * include/javascript/pandora_visual_console.js: fixed the javascript error when sometimes there is not a new lines. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8610 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/javascript/pandora_visual_console.js | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 2bf2018663..21b0cf2d60 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2013-08-01 Miguel de Dios + + * include/javascript/pandora_visual_console.js: fixed the javascript + error when sometimes there is not a new lines. + 2013-07-31 Miguel de Dios * godmode/reporting/visual_console_builder.php: change the code diff --git a/pandora_console/include/javascript/pandora_visual_console.js b/pandora_console/include/javascript/pandora_visual_console.js index 86fbcc99b4..57ec054502 100644 --- a/pandora_console/include/javascript/pandora_visual_console.js +++ b/pandora_console/include/javascript/pandora_visual_console.js @@ -25,6 +25,11 @@ function draw_line (line, id_div, editor) { selector = ''; } + //Check if the global var resize_map is defined + if (typeof(resize_map) == 'undefined') { + resize_map = 0; + } + div = document.getElementById (id_div); brush = new jsGraphics (div); brush.setStroke (1);