2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

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
This commit is contained in:
rudolfkoenig 2016-11-10 14:31:46 +00:00
parent a1b1576a11
commit 3480c103c4

View File

@ -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);
}