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

14 lines
456 B
JavaScript
Raw Normal View History

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