Fix to print the user lines into the visual maps. Ticket #3746
(cherry picked from commit caac294f6e
)
This commit is contained in:
parent
a42e3a310b
commit
4b4c3f5c6a
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue