svg.js: activate menu after longpollSVG (Forum #33591)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@7937 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-02-11 05:52:12 +00:00
parent 435241e4fe
commit 7a744f9ff1

View File

@ -347,7 +347,8 @@ FW_svgUpdateDevs(devs)
var svg = embArr[i].getSVGDocument(); var svg = embArr[i].getSVGDocument();
if(!svg || !svg.firstChild || !svg.firstChild.nextSibling) if(!svg || !svg.firstChild || !svg.firstChild.nextSibling)
continue; continue;
var flog = svg.firstChild.nextSibling.getAttribute("flog"); svg = svg.firstChild.nextSibling;
var flog = svg.getAttribute("flog");
if(!flog) if(!flog)
continue; continue;
flog = flog.replace(/\\x3a/g, "."); flog = flog.replace(/\\x3a/g, ".");
@ -357,6 +358,7 @@ FW_svgUpdateDevs(devs)
var ev = d[0]+":"+d[1]; var ev = d[0]+":"+d[1];
if(ev.match(flog)) { if(ev.match(flog)) {
log("longpollSVG: reload SVG"); log("longpollSVG: reload SVG");
delete(svg_initialized[$(svg).attr("id")]);
var e = embArr[i]; var e = embArr[i];
var newE = document.createElement("embed"); var newE = document.createElement("embed");
for(var k=0; k<e.attributes.length; k++) for(var k=0; k<e.attributes.length; k++)