From b1567da12e0659106a8fd5aa7aaaf6f2d319e299 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Thu, 2 Jul 2015 10:06:26 +0200 Subject: [PATCH] Change order divs, because dont show right in view reports. Tiquet: #2317 --- .../include/graphs/functions_flot.php | 66 +++++++++---------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/pandora_console/include/graphs/functions_flot.php b/pandora_console/include/graphs/functions_flot.php index d273d930aa9..95b1bba8dd6 100644 --- a/pandora_console/include/graphs/functions_flot.php +++ b/pandora_console/include/graphs/functions_flot.php @@ -188,6 +188,39 @@ function flot_area_graph($chart_data, $width, $height, $color, $legend, $return = "
"; // Set some containers to legend, graph, timestamp tooltip, etc. $return .= "

"; + if ($menu) { + $threshold = false; + if ($yellow_threshold != 0 || $red_threshold != 0) { + $threshold = true; + } + + $nbuttons = 3; + + if ($threshold) { + $nbuttons++; + } + + $menu_width = 25 * $nbuttons + 15; + $return .= ""; + } $return .= ""; $return .= "
"; if ($menu) { @@ -279,39 +312,6 @@ function flot_area_graph($chart_data, $width, $height, $color, $legend, // Max is "n-1" because start with 0 $max_x--; - if ($menu) { - $threshold = false; - if ($yellow_threshold != 0 || $red_threshold != 0) { - $threshold = true; - } - - $nbuttons = 3; - - if ($threshold) { - $nbuttons++; - } - - $menu_width = 25 * $nbuttons + 15; - $return .= ""; - } $extra_width = (int)($width / 3); $return .= "";