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