mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-02 06:55:26 +00:00
svg.js: activate menu after longpollSVG (Forum #33591)
git-svn-id: https://svn.fhem.de/fhem/trunk@7937 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e32b642563
commit
940e740b94
@ -347,7 +347,8 @@ FW_svgUpdateDevs(devs)
|
||||
var svg = embArr[i].getSVGDocument();
|
||||
if(!svg || !svg.firstChild || !svg.firstChild.nextSibling)
|
||||
continue;
|
||||
var flog = svg.firstChild.nextSibling.getAttribute("flog");
|
||||
svg = svg.firstChild.nextSibling;
|
||||
var flog = svg.getAttribute("flog");
|
||||
if(!flog)
|
||||
continue;
|
||||
flog = flog.replace(/\\x3a/g, ".");
|
||||
@ -357,6 +358,7 @@ FW_svgUpdateDevs(devs)
|
||||
var ev = d[0]+":"+d[1];
|
||||
if(ev.match(flog)) {
|
||||
log("longpollSVG: reload SVG");
|
||||
delete(svg_initialized[$(svg).attr("id")]);
|
||||
var e = embArr[i];
|
||||
var newE = document.createElement("embed");
|
||||
for(var k=0; k<e.attributes.length; k++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user