diff --git a/pandora_console/operation/visual_console/public_console.php b/pandora_console/operation/visual_console/public_console.php
index 322395a8d9..31ac16a649 100755
--- a/pandora_console/operation/visual_console/public_console.php
+++ b/pandora_console/operation/visual_console/public_console.php
@@ -75,102 +75,148 @@ $bheight = $layout["height"];
if (!isset($config['pure']))
$config['pure'] = 0;
-// Render map
-$options = array();
-echo '
';
-echo "
" . $layout_name . "
";
-
-visual_map_print_visual_map ($id_layout, true, true, null, null, '../../', true, $graph_javascript);
-
-$values = array ();
-$values[5] = human_time_description_raw (5);
-$values[30] = human_time_description_raw (30);
-$values[SECONDS_1MINUTE] = human_time_description_raw(SECONDS_1MINUTE);
-$values[SECONDS_2MINUTES] = human_time_description_raw(SECONDS_2MINUTES);
-$values[SECONDS_5MINUTES] = human_time_description_raw(SECONDS_5MINUTES);
-$values[SECONDS_10MINUTES] = human_time_description_raw(SECONDS_10MINUTES);
-$values[SECONDS_30MINUTES] = human_time_description_raw(SECONDS_30MINUTES);
-
-$table->width = '90%';
-$table->data = array ();
-$table->style = array ();
-$table->style[2] = 'text-align: center';
-$table->data[0][0] = __('Autorefresh time');
-
-$table->data[0][1] = html_print_select ($values, 'refr', $refr, '', 'N/A', 0, true, false, false);
-$table->data[0][2] = html_print_submit_button (__('Refresh'), '', false, 'class="sub next"', true);
-$table->data[0][2] .= html_print_input_hidden ('vc_refr', $config["vc_refr"], true);
-$table->data[0][3] .= '
' .
- '' .
- '';
-
-echo '
';
-
-if ($refr > 0) {
- echo '
';
+$xhr = (bool) get_parameter('xhr');
+if ($xhr) {
+ $width = (int) get_parameter('width');
+ if ($width <= 0) $width = null;
+ $height = (int) get_parameter('height');
+ if ($height <= 0) $height = null;
+
+ ob_start();
+ // Render map
+ visual_map_print_visual_map($id_layout, true, true, $width, $height,
+ '../../', true, $graph_javascript, true);
+ return;
+}
+else {
+ echo '
';
}
-echo '
';
+// Floating menu - Start
+echo '
';
-echo "
";
+echo '';
+echo '
';
+// Floating menu - End
-ui_require_jquery_file ('countdown');
-ui_require_css_file ('countdown');
+// QR code dialog
+echo '
';
-
-
-ui_require_javascript_file ('wz_jsgraphics');
-ui_require_javascript_file ('pandora_visual_console');
+ui_require_jquery_file('countdown');
+ui_require_javascript_file('wz_jsgraphics');
+ui_require_javascript_file('pandora_visual_console');
?>
+
+
+