First commit with the changes.

This commit is contained in:
mdtrooper 2015-07-24 14:32:26 +02:00
parent b572cf650c
commit c4fc8586fd
2 changed files with 20 additions and 17 deletions

View File

@ -48,6 +48,7 @@ if (!$vconsole_write && !$vconsole_manage) {
require_once ($config['homedir'] . '/include/functions_visual_map.php');
require_once($config['homedir'] . "/include/functions_agents.php");
$table = new stdClass();
$table->id = 'wizard_table';
$table->head = array ();
if (!defined('METACONSOLE')) {

View File

@ -1750,6 +1750,24 @@ function visual_map_print_visual_map ($id_layout, $show_links = true,
return;
}
?>
<script language="javascript" type="text/javascript">
/* <![CDATA[ */
var lines = Array();
var user_lines = Array();
//Fixed to wait the load of images.
$(window).load(function() {
draw_lines(lines, 'background');
draw_user_lines_read();
}
);
/* ]]> */
</script>
<?php
$resizedMap = false;
$proportion = 1;
if (!is_null($width)) {
@ -1807,6 +1825,7 @@ function visual_map_print_visual_map ($id_layout, $show_links = true,
$lines = array ();
foreach ($layout_datas as $layout_data) {
if ($resizedMap) {
//Hack to resize the text
$layout_data["label"] = str_replace(
@ -1850,23 +1869,6 @@ function visual_map_print_visual_map ($id_layout, $show_links = true,
if (defined('METACONSOLE')) {
echo "</div>";
}
?>
<script language="javascript" type="text/javascript">
/* <![CDATA[ */
var lines = Array();
var user_lines = Array();
//Fixed to wait the load of images.
$(window).load(function() {
draw_lines(lines, 'background');
draw_user_lines_read();
}
);
/* ]]> */
</script>
<?php
}
//End function