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:
parent
a1b1576a11
commit
3480c103c4
@ -892,9 +892,7 @@ FW_replaceWidget(oldEl, devName, vArr, currVal, reading, set, params, cmd)
|
|||||||
$(newEl).addClass(wn+"_widget");
|
$(newEl).addClass(wn+"_widget");
|
||||||
|
|
||||||
if( $(newEl).find("[informId]").length == 0 && !$(newEl).attr("informId") ) {
|
if( $(newEl).find("[informId]").length == 0 && !$(newEl).attr("informId") ) {
|
||||||
if(reading && reading == "state")
|
if(reading)
|
||||||
$(newEl).attr("informId", devName);
|
|
||||||
else if(reading)
|
|
||||||
$(newEl).attr("informId", devName+"-"+reading);
|
$(newEl).attr("informId", devName+"-"+reading);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user