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();