web: Fix reloading graphs

Suggested-by: Leo-Andres Hofmann <hofmann@leo-andres.de>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2024-09-23 19:44:42 +00:00
parent aab8f48aae
commit 1d66bc478b
2 changed files with 2 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
etc/rc.d/init.d/functions
srv/web/ipfire/html/include/rrdimage.js
var/ipfire/header.pl
var/ipfire/ids-functions.pl

View File

@@ -35,7 +35,7 @@ function rrdimage_selectRange(buttonObj) {
// Document loaded: Process all graphs, start reload timers
$(function() {
$('div.rrdimage').each(function() {
$('div.graph').each(function() {
let graphBox = $(this);
_rrdimg_setRange(graphBox, graphBox.data('defaultRange'), true);
});