mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
AttrTemplate.pm:Report error after dialog (Forum #104804)
git-svn-id: https://svn.fhem.de/fhem/trunk@20425 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1bba392d9e
commit
0a8c9d7d05
@ -229,8 +229,11 @@ AttrTemplate_Set($$@)
|
||||
$("#FW_okDialog").parent().find(".ui-dialog-buttonpane button")
|
||||
.unbind("click").click(function(){
|
||||
var val = encodeURIComponent($("#FW_okDialog input").val());
|
||||
FW_cmd(FW_root+"?cmd="+val+"&XHR=1",
|
||||
function(){ location.reload() } );
|
||||
FW_cmd(FW_root+"?cmd="+val+"&XHR=1", function(resp){
|
||||
if(resp)
|
||||
return FW_okDialog("<pre>"+resp+"</pre>");
|
||||
location.reload()
|
||||
});
|
||||
$("#FW_okDialog").remove();
|
||||
})}, 100);
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user