From 44fb762fdffe9495886175ecfd9b2dc1d7fa8842 Mon Sep 17 00:00:00 2001 From: Jose Gonzalez Date: Mon, 6 Mar 2023 15:44:32 +0100 Subject: [PATCH] Minor fixes with graphs --- .../extensions/realtime_graphs.php | 9 ++- .../include/graphs/flot/pandora.flot.js | 14 ++-- .../include/graphs/functions_flot.php | 4 +- .../operation/agentes/stat_win.php | 76 +++++++------------ 4 files changed, 42 insertions(+), 61 deletions(-) diff --git a/pandora_console/extensions/realtime_graphs.php b/pandora_console/extensions/realtime_graphs.php index eae6253d59..133af5b3f8 100644 --- a/pandora_console/extensions/realtime_graphs.php +++ b/pandora_console/extensions/realtime_graphs.php @@ -258,8 +258,15 @@ function pandora_realtime_graphs() $canvas .= grafico_modulo_sparse($params); $canvas .= ''; - echo $canvas; + html_print_div( + [ + 'class' => 'white_box', + 'content' => $canvas, + ] + ); + + // echo $canvas; // Define a custom action to save // the OID selected in the SNMP browser to the form. html_print_input_hidden( diff --git a/pandora_console/include/graphs/flot/pandora.flot.js b/pandora_console/include/graphs/flot/pandora.flot.js index 0b48540052..750ec4781a 100644 --- a/pandora_console/include/graphs/flot/pandora.flot.js +++ b/pandora_console/include/graphs/flot/pandora.flot.js @@ -2318,10 +2318,9 @@ function pandoraFlotArea( ); } - $("#menu_cancelzoom_" + graph_id).attr( - "src", - homeurl + "images/zoom_cross_grey.png" - ); + $("#menu_cancelzoom_" + graph_id) + .attr("src", homeurl + "images/disable.svg") + .removeClass("alpha50"); max_draw["max"] = ranges.yaxis.to; max_draw["min"] = ranges.yaxis.from; @@ -2813,11 +2812,8 @@ function pandoraFlotArea( legend: { show: true } }) ); - $("#menu_cancelzoom_" + graph_id).attr( - "src", - homeurl + "images/zoom_cross.disabled.png" - ); - $("#menu_cancelzoom_" + graph_id).attr("class", "invert_filter"); + $("#menu_cancelzoom_" + graph_id).addClass("alpha50"); + //$("#menu_cancelzoom_" + graph_id).attr("class", "invert_filter"); overview.clearSelection(); thresholded = false; max_draw = []; diff --git a/pandora_console/include/graphs/functions_flot.php b/pandora_console/include/graphs/functions_flot.php index b76abb634e..4c5811b746 100644 --- a/pandora_console/include/graphs/functions_flot.php +++ b/pandora_console/include/graphs/functions_flot.php @@ -367,7 +367,7 @@ function menu_graph( $return .= "