Re-fixed problems with visual console. Tiquet: #3492
This commit is contained in:
parent
bff7d3ef8f
commit
951856d837
|
@ -107,7 +107,8 @@ foreach ($layoutDatas as $layoutData) {
|
|||
visual_map_print_user_lines($layoutData);
|
||||
break;
|
||||
default:
|
||||
visual_map_print_item("write", $layoutData);
|
||||
visual_map_print_item("write", $layoutData,
|
||||
null, true, false, false);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -202,7 +202,7 @@ function flot_area_graph($chart_data, $width, $height, $color, $legend,
|
|||
}
|
||||
$return .= html_print_input_hidden ('lineWidhtGraph', $config['custom_graph_width'],true);
|
||||
$menu_width = 25 * $nbuttons + 15;
|
||||
if ( $dashboard == false) {
|
||||
if ( $dashboard == false AND $vconsole == false) {
|
||||
$return .= "<div id='menu_$graph_id' class='menu_graph' " .
|
||||
"style='display: none; " .
|
||||
"text-align: center; " .
|
||||
|
@ -233,7 +233,8 @@ function flot_area_graph($chart_data, $width, $height, $color, $legend,
|
|||
else {
|
||||
$height = 1;
|
||||
}
|
||||
$return .= "<div id='overview_$graph_id' class='overview_graph' style='visibility: hidden; margin-left:0px; margin-top:20px; width: ".$width."px; height: ".$height ."px;'></div>";
|
||||
if ( $dashboard == false AND $vconsole == false )
|
||||
$return .= "<div id='overview_$graph_id' class='overview_graph' style='visibility: hidden; margin-left:0px; margin-top:20px; width: ".$width."px; height: ".$height ."px;'></div>";
|
||||
|
||||
if ($water_mark != '') {
|
||||
$return .= "<div id='watermark_$graph_id' style='display:none; position:absolute;'><img id='watermark_image_$graph_id' src='$water_mark'></div>";
|
||||
|
|
|
@ -42,6 +42,7 @@ else {
|
|||
}
|
||||
|
||||
$refr = (int) get_parameter ('refr', $config['vc_refr']);
|
||||
$graph_javascript = (bool) get_parameter ('graph_javascript', false);
|
||||
$vc_refr = false;
|
||||
|
||||
if (isset($config['vc_refr']) and $config['vc_refr'] != 0)
|
||||
|
@ -153,7 +154,7 @@ else {
|
|||
html_print_input_hidden('metaconsole', 1);
|
||||
}
|
||||
|
||||
visual_map_print_visual_map ($id_layout, true, true, null, null, '', false, true);
|
||||
visual_map_print_visual_map ($id_layout, true, true, null, null, '', false, $graph_javascript);
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue