2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00
fhem-mirror/fhem/www/pgm2/doif.js
Ellert 2bc8bc7cfd doif.js: support for DOIF uiTable
git-svn-id: https://svn.fhem.de/fhem/trunk@15353 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2017-10-30 12:47:07 +00:00

14 lines
456 B
JavaScript

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