diff --git a/MAINTAINER.txt b/MAINTAINER.txt index f833f3f4b..95781722a 100644 --- a/MAINTAINER.txt +++ b/MAINTAINER.txt @@ -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 diff --git a/www/pgm2/doif.js b/www/pgm2/doif.js new file mode 100644 index 000000000..d5a89b7bf --- /dev/null +++ b/www/pgm2/doif.js @@ -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); + } + }); +} \ No newline at end of file