Now all the graphs of the visual console are images by default

(cherry picked from commit 7cec21d839b268a80173fbd31d0eb330a207f319)
This commit is contained in:
Alejandro Gallardo Escobar 2016-05-30 18:53:15 +02:00
parent cffe5eab5f
commit 0d24ae7258

View File

@ -42,7 +42,7 @@ else {
} }
$refr = (int) get_parameter ('refr', $config['vc_refr']); $refr = (int) get_parameter ('refr', $config['vc_refr']);
$graph_javascript = (bool) get_parameter ('graph_javascript', true); $graph_javascript = (bool) get_parameter ('graph_javascript', false);
$vc_refr = false; $vc_refr = false;
if (isset($config['vc_refr']) and $config['vc_refr'] != 0) if (isset($config['vc_refr']) and $config['vc_refr'] != 0)
@ -242,7 +242,7 @@ ui_require_javascript_file('pandora_visual_console');
render_map: true, render_map: true,
keep_aspect_ratio: true, keep_aspect_ratio: true,
id_visual_console: <?php echo $id_layout; ?>, id_visual_console: <?php echo $id_layout; ?>,
graph_javascript: <?php echo $config['pure'] ? 0 : (int) $graph_javascript; ?>, graph_javascript: <?php echo (int) $graph_javascript; ?>,
width: $(window).width(), width: $(window).width(),
height: $(window).height() height: $(window).height()
} }