2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-15 03:59:11 +00:00

fhemweb.js: add title for non-state webCmd widgets

git-svn-id: https://svn.fhem.de/fhem/trunk@13887 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-04-03 08:21:53 +00:00
parent 020a8a50b9
commit ff330082c9

View File

@ -1059,6 +1059,8 @@ FW_replaceWidget(oldEl, devName, vArr, currVal, reading, set, params, cmd)
if( $(newEl).find("[informId]").length == 0 && !$(newEl).attr("informId") ) {
if(reading)
$(newEl).attr("informId", devName+"-"+reading);
if(reading != "state")
$(newEl).attr("title", reading);
}
$(oldEl).replaceWith(newEl);