From e945d65de0038f2091d1919f84cf9a15c4f35dba Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Sat, 29 Dec 2012 17:29:25 +0000 Subject: [PATCH] Add navigation buttons to fixedrange, if fixedrange is not a date but week/month/etc git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2391 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/01_FHEMWEB.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FHEM/01_FHEMWEB.pm b/FHEM/01_FHEMWEB.pm index 1c9ff0a0f..0957aa2e8 100755 --- a/FHEM/01_FHEMWEB.pm +++ b/FHEM/01_FHEMWEB.pm @@ -2153,8 +2153,8 @@ FW_showWeblink($$$$) # plots navigation buttons if($buttons && - ($defs{$d}{WLTYPE} eq "fileplot" || $defs{$d}{WLTYPE} eq "dbplot")&& - !AttrVal($d, "fixedrange", undef)) { + ($defs{$d}{WLTYPE} eq "fileplot" || $defs{$d}{WLTYPE} eq "dbplot") && + AttrVal($d, "fixedrange", "x") !~ m/^[ 0-9:-]*$/) { FW_zoomLink("zoom=-1", "Zoom-in", "zoom in"); FW_zoomLink("zoom=1", "Zoom-out","zoom out");