2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 04:36:36 +00:00

fhemweb.js: fix multiline attribute update

git-svn-id: https://svn.fhem.de/fhem/trunk@13392 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-02-11 18:32:13 +00:00
parent 3a3c785221
commit 687a78d0bc

View File

@ -783,9 +783,9 @@ FW_doUpdate(evt)
} else {
if(d[2].match(/\n/))
d[2] = '<pre>'+d[2]+'</pre>';
var ma = /^<html>(.*)<\/html>$/.exec(d[2]);
d[2] = '<html><pre>'+d[2]+'</pre></html>';
var ma = /^<html>([\s\S]*)<\/html>$/.exec(d[2]);
if(!d[0].match("-")) // not a reading
$(this).html(d[2]);
else if(ma)