From 77addaa51307fe0b38f99a1ce1cc179263582fa2 Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Sun, 27 Sep 2015 11:36:42 +0000 Subject: [PATCH] 01_FHEMWEB.pm: add noFhemwebLink as devStateIcon value (Forum #39546) git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@9320 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/01_FHEMWEB.pm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/fhem/FHEM/01_FHEMWEB.pm b/fhem/FHEM/01_FHEMWEB.pm index 3f340a473..bb5353310 100755 --- a/fhem/FHEM/01_FHEMWEB.pm +++ b/fhem/FHEM/01_FHEMWEB.pm @@ -2559,7 +2559,8 @@ FW_devState($$@) } $link .= "&room=$room"; } - $txt = "$txt"; + $txt = "$txt" + if($link !~ m/ noFhemwebLink$/); } my $style = AttrVal($d, "devStateStyle", ""); @@ -3199,8 +3200,11 @@ FW_widgetOverride($$) Note: if the image is referencing an SVG icon, then you can use the @colorname suffix to color the image. E.g.:
+ If the cmd is noFhemwebLink, then no HTML-link will be generated, i.e. + nothing will happen when clicking on the icon or text. Second form:
@@ -3877,7 +3881,8 @@ FW_widgetOverride($$) attr Fax devStateIcon on:control_building_empty@red off:control_building_filled:278727 - + Falls cmd noFhemwebLink ist, dann wird kein HTML-Link generiert, d.h. + es passiert nichts, wenn man auf das Icon/Text klickt. Zweite Variante: