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

This commit is contained in:
Alejandro Gallardo Escobar 2016-06-02 15:13:46 +02:00
parent 4f9ea2a456
commit caac294f6e
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(); var user_lines = Array();
//Fixed to wait the load of images. //Fixed to wait the load of images.
$(window).load(function() { $(window).load(function () {
draw_lines(lines, 'background_'+id_layout); draw_lines(lines, 'background_'+id_layout);
draw_user_lines_read(); draw_user_lines_read('background_'+id_layout);
center_labels(); center_labels();
} });
);
/* ]]> */ /* ]]> */
</script> </script>
<?php <?php

View File

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