Fix to print the user lines into the visual maps. Ticket #3746

(cherry picked from commit caac294f6e)
This commit is contained in:
Alejandro Gallardo Escobar 2016-06-02 15:13:46 +02:00
parent a42e3a310b
commit 4b4c3f5c6a
2 changed files with 8 additions and 8 deletions

View File

@ -1969,12 +1969,11 @@ function visual_map_print_visual_map ($id_layout, $show_links = true,
var user_lines = Array();
//Fixed to wait the load of images.
$(window).load(function() {
draw_lines(lines, 'background_'+id_layout);
draw_user_lines_read();
center_labels();
}
);
$(window).load(function () {
draw_lines(lines, 'background_'+id_layout);
draw_user_lines_read('background_'+id_layout);
center_labels();
});
/* ]]> */
</script>
<?php

View File

@ -136,8 +136,9 @@ function refresh_lines (lines, id_div, editor) {
}
function draw_user_lines_read() {
var obj_js_user_lines = new jsGraphics("background");
function draw_user_lines_read(divId) {
divId = divId || 'background';
var obj_js_user_lines = new jsGraphics(divId);
obj_js_user_lines.clear();