doif.js: enhanced compatibility

git-svn-id: https://svn.fhem.de/fhem/trunk@15546 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Ellert
2017-12-03 09:57:42 +00:00
parent 1dffeba54b
commit 186abda598

View File

@@ -25,7 +25,12 @@ function doifUpdateCell(doifname,attrname,attrcont,content,style) {
function doifTablePopUp(hash,name,doif,table) {
FW_cmd(FW_root+"?cmd={DOIF_RegisterEvalAll(\$defs{"+name+"},\""+name+"\",\""+table+"\")}&XHR=1", function(data){
FW_okDialog(data,$("[uitabid='DOIF-"+doif+"']"));
var uit = $("[uitabid='DOIF-"+doif+"']");
if(uit.html() !== undefined){
FW_okDialog(data,uit);
} else {
FW_okDialog(data);
}
});
}