'
. html_print_image('images/full_screen.png', true, array('title' => __('Full screen mode')))
@@ -147,7 +147,10 @@ else {
if ($config['pure']) {
// Container of the visual map (ajax loaded)
- echo '';
+ echo '' .
+ visual_map_print_visual_map ($id_layout, true, true,
+ null, null, '', false, $graph_javascript)
+ . '
';
// Floating menu - Start
echo '';
@@ -215,54 +218,54 @@ ui_require_javascript_file('pandora_visual_console');
var pure = ;
if (pure) {
- var startCountDown = function (duration, cb) {
- $('div.vc-countdown').countdown('destroy');
- if (!duration) return;
- var t = new Date();
- t.setTime(t.getTime() + duration * 1000);
- $('div.vc-countdown').countdown({
- until: t,
- format: 'MS',
- layout: '(%M%nn%M:%S%nn%S ) ',
- alwaysExpire: true,
- onExpiry: function () {
- $('div.vc-countdown').countdown('destroy');
- cb();
- }
- });
- }
+ //~ var startCountDown = function (duration, cb) {
+ //~ $('div.vc-countdown').countdown('destroy');
+ //~ if (!duration) return;
+ //~ var t = new Date();
+ //~ t.setTime(t.getTime() + duration * 1000);
+ //~ $('div.vc-countdown').countdown({
+ //~ until: t,
+ //~ format: 'MS',
+ //~ layout: '(%M%nn%M:%S%nn%S ) ',
+ //~ alwaysExpire: true,
+ //~ onExpiry: function () {
+ //~ $('div.vc-countdown').countdown('destroy');
+ //~ cb();
+ //~ }
+ //~ });
+ //~ }
- var fetchMap = function () {
- $.ajax({
- url: 'ajax.php',
- type: 'GET',
- dataType: 'html',
- data: {
- page: 'include/ajax/visual_console.ajax',
- render_map: true,
- keep_aspect_ratio: true,
- id_visual_console: ,
- graph_javascript: ,
- width: $(window).width(),
- height: $(window).height()
- }
- })
- .done(function (data, textStatus, xhr) {
- $('div#vc-container').html(data);
- startCountDown(refr, fetchMap);
- });
- }
+ //~ var fetchMap = function () {
+ //~ $.ajax({
+ //~ url: 'ajax.php',
+ //~ type: 'GET',
+ //~ dataType: 'html',
+ //~ data: {
+ //~ page: 'include/ajax/visual_console.ajax',
+ //~ render_map: true,
+ //~ keep_aspect_ratio: true,
+ //~ id_visual_console: ,
+ //~ graph_javascript: ,
+ //~ width: $(window).width(),
+ //~ height: $(window).height()
+ //~ }
+ //~ })
+ //~ .done(function (data, textStatus, xhr) {
+ //~ $('div#vc-container').html(data);
+ //~ startCountDown(refr, fetchMap);
+ //~ });
+ //~ }
- // Auto hide controls
- var controls = document.getElementById('vc-controls');
- autoHideElement(controls, 1000);
- $('select#refr').change(function (event) {
- refr = Number.parseInt(event.target.value, 10);
- startCountDown(refr, fetchMap);
- });
+ //~ // Auto hide controls
+ //~ var controls = document.getElementById('vc-controls');
+ //~ autoHideElement(controls, 1000);
+ //~ $('select#refr').change(function (event) {
+ //~ refr = Number.parseInt(event.target.value, 10);
+ //~ startCountDown(refr, fetchMap);
+ //~ });
- // Start the map fetch
- fetchMap();
+ //~ // Start the map fetch
+ //~ fetchMap();
}
else {
$('#refr').change(function () {