mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-13 23:36:37 +00:00
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:
parent
d565d2c464
commit
9f864dbc24
@ -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");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user