mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
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:
parent
435241e4fe
commit
7a744f9ff1
@ -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++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user