From 0b419d84be73a4606d4ad19dbe51e5c05fc94667 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Fri, 15 Mar 2024 10:22:30 +0100 Subject: [PATCH] #12691 added button submit in realtime_graph --- pandora_console/extensions/realtime_graphs.php | 9 +++++++++ .../extensions/realtime_graphs/realtime_graphs.js | 4 ---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/pandora_console/extensions/realtime_graphs.php b/pandora_console/extensions/realtime_graphs.php index be9076a57f..77b660fd1c 100644 --- a/pandora_console/extensions/realtime_graphs.php +++ b/pandora_console/extensions/realtime_graphs.php @@ -196,6 +196,15 @@ function pandora_realtime_graphs() [ 'class' => 'action-buttons', 'content' => html_print_submit_button( + __('Filter'), + 'filterbutton', + false, + [ + 'icon' => 'search', + 'mode' => 'mini', + ], + true + ).html_print_submit_button( __('Clear graph'), 'srcbutton', false, diff --git a/pandora_console/extensions/realtime_graphs/realtime_graphs.js b/pandora_console/extensions/realtime_graphs/realtime_graphs.js index 088f31dbf6..1bd0a130a3 100644 --- a/pandora_console/extensions/realtime_graphs/realtime_graphs.js +++ b/pandora_console/extensions/realtime_graphs/realtime_graphs.js @@ -160,10 +160,6 @@ return +(Math.round(num + "e+2") + "e-2"); } - $("#graph").change(function() { - $("form#realgraph").submit(); - }); - $("#refresh").change(function() { refresh = parseInt($("#refresh").val()); resetDataPooling();