fhemweb.js: fix inline modify (Forum #115558)

git-svn-id: https://svn.fhem.de/fhem/trunk@23090 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2020-11-03 19:53:34 +00:00
parent d4d24959a4
commit 6ae6702b64

View File

@@ -796,10 +796,9 @@ FW_inlineModify() // Do not generate a new HTML page upon pressing modify
return FW_okDialog(resp);
}
if(isDef) {
newDef = FW_htmlQuote(newDef);
if(newDef.indexOf("\n") >= 0)
newDef = '<pre>'+newDef+'</pre>';
else
newDef = FW_htmlQuote(newDef);
$("div#disp").html(newDef).css("display", "");
$("div#edit").css("display", "none");
}