mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
14 lines
456 B
JavaScript
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);
|
||
|
}
|
||
|
});
|
||
|
}
|