mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Fix to print the user lines into the visual maps. Ticket #3746
This commit is contained in:
parent
4f9ea2a456
commit
caac294f6e
@ -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
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user