From 3480c103c4fb51ca4818c8964db2801d7771ca4b Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Thu, 10 Nov 2016 14:31:46 +0000 Subject: [PATCH] fhemweb.js: remove special state reading handling for JS widgets (Forum #60425) git-svn-id: https://svn.fhem.de/fhem/trunk@12538 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/www/pgm2/fhemweb.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fhem/www/pgm2/fhemweb.js b/fhem/www/pgm2/fhemweb.js index 63e46c238..4b2af0def 100644 --- a/fhem/www/pgm2/fhemweb.js +++ b/fhem/www/pgm2/fhemweb.js @@ -892,9 +892,7 @@ FW_replaceWidget(oldEl, devName, vArr, currVal, reading, set, params, cmd) $(newEl).addClass(wn+"_widget"); if( $(newEl).find("[informId]").length == 0 && !$(newEl).attr("informId") ) { - if(reading && reading == "state") - $(newEl).attr("informId", devName); - else if(reading) + if(reading) $(newEl).attr("informId", devName+"-"+reading); }