2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-12 22:56:34 +00:00

doif.js: support for DOIF uiTable

git-svn-id: https://svn.fhem.de/fhem/trunk@15353 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Ellert 2017-10-30 12:47:07 +00:00
parent b9c795d64b
commit 2bc8bc7cfd
2 changed files with 15 additions and 0 deletions

View File

@ -531,6 +531,7 @@ www/jscolor/* justme1968 Frontends
www/pgm2/* rudolfkoenig Frontends/FHEMWEB
www/pgm2/dashboard/* svenson08 Frontends
www/pgm2/fhemweb_fbcalllist.js markusbloch Frontends
www/pgm2/doif.js Ellert Frontends
www/pgm2/fhemweb_iconButtons.js Ellert Frontends
www/pgm2/fhemweb_iconLabel.js Ellert Frontends
www/pgm2/fhemweb_iconRadio.js Ellert Frontends

14
fhem/www/pgm2/doif.js Normal file
View File

@ -0,0 +1,14 @@
FW_version["doif.js"] = "$Id$";
function doifUpdateCell(doifname,attrname,attrcont,content,style) {
$("table[uitabid='DOIF-"+doifname+"']").find("div["+attrname+"='"+attrcont+"']").each(function() {
if(this.setValueFn) { // change widget value
this.setValueFn(content.replace(/\n/g, '\u2424'));
} else {
$(this).html(content+"");
if(style)
$(this).attr("style",style);
}
});
}