mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +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:
parent
3a3c785221
commit
687a78d0bc
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user