Merge branch 'pandora_6.0' of https://github.com/pandorafms/pandorafms into pandora_6.0

This commit is contained in:
Daniel Maya 2016-06-02 15:15:26 +02:00
commit f6519bca70
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();