mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-07 22:29:19 +00:00
fhemweb.js: show set results in a dialog, not FW_errmsg (Forum #38875)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@8916 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
296479731e
commit
c5ef06b55f
@ -354,7 +354,16 @@ FW_replaceLink(el)
|
|||||||
return;
|
return;
|
||||||
$(el).removeAttr("href");
|
$(el).removeAttr("href");
|
||||||
$(el).removeAttr("onclick");
|
$(el).removeAttr("onclick");
|
||||||
$(el).click(function() { FW_cmd(attr+"&XHR=1"); });
|
$(el).click(function() {
|
||||||
|
FW_cmd(attr+"&XHR=1", function(txt){
|
||||||
|
if(!txt)
|
||||||
|
return;
|
||||||
|
if(ma[2].match(/=set/)) // Forum #38875
|
||||||
|
FW_okDialog(txt, el);
|
||||||
|
else
|
||||||
|
FW_errmsg(txt, 5000);
|
||||||
|
});
|
||||||
|
});
|
||||||
$(el).css("cursor", "pointer");
|
$(el).css("cursor", "pointer");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user