From: Michael Tremer Date: Tue, 6 Aug 2024 14:51:06 +0000 (+0200) Subject: graphs: Highlight the default range before the user clicks anything X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0869a6f5f3bbc1bbaed02511c3996d942bc60c7a;p=people%2Fmfischer%2Fipfire-2.x.git graphs: Highlight the default range before the user clicks anything Signed-off-by: Michael Tremer --- diff --git a/config/cfgroot/graphs.pl b/config/cfgroot/graphs.pl index 4bf1a5779..d0fe6275b 100644 --- a/config/cfgroot/graphs.pl +++ b/config/cfgroot/graphs.pl @@ -119,9 +119,11 @@ END # Print range select buttons foreach my $range (@time_ranges) { + my $selected = ($range eq $default_range) ? "class=\"selected\"" : ""; + print < -