2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-13 17:26:34 +00:00

fhemweb.js: support multiple commands per row in RawDef (Forum #111734)

git-svn-id: https://svn.fhem.de/fhem/trunk@22094 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2020-06-02 10:20:18 +00:00
parent 7f003aa70c
commit ae0d8a6c34

View File

@ -898,9 +898,8 @@ FW_execRawDef(data)
return doNext();
}
if(str != "") {
str = str.replace(/\\\n/g, "\n")
.replace(/;;/g, ";");
FW_cmd(FW_root+"?cmd.x="+encodeURIComponent(str)+"&XHR=1",
str = str.replace(/\\\n/g, "\n");
FW_cmd(FW_root+"?cmd="+encodeURIComponent(str)+"&XHR=1",
function(r){
if(r)
return FW_okDialog('<pre>'+r+'</pre>');