98_SVG.pm: fix menu when plotfork is active (Forum #32362)

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@7614 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2015-01-18 12:59:26 +00:00
parent c91e50e9a9
commit ce43b16f4f

View File

@@ -45,7 +45,6 @@ sub SVG_getData($$$$$);
sub SVG_sel($$$;$$);
my %SVG_devs; # hash of from/to entries per device
my $SVG_id=0;
#####################################
@@ -1255,7 +1254,7 @@ SVG_render($$$$$$$$$;$$)
# SVG Header
my $svghdr = 'version="1.1" xmlns="http://www.w3.org/2000/svg" '.
'xmlns:xlink="http://www.w3.org/1999/xlink" '.
'id="SVGPLOT_'.(++$SVG_id).'" '.$filter;
"id='SVGPLOT_$name'$filter";
if(!$styleW) {
SVG_pO '<?xml version="1.0" encoding="UTF-8"?>';
SVG_pO '<!DOCTYPE svg>';
@@ -1904,7 +1903,7 @@ SVG_render($$$$$$$$$;$$)
my $fnName = SVG_isEmbed($FW_wname) ? "parent.window.svg_init" : "svg_init";
SVG_pO "<script type='text/javascript'>if(typeof $fnName == 'function') ".
"$fnName('SVGPLOT_$SVG_id')</script>";
"$fnName('SVGPLOT_$name')</script>";
SVG_pO "</svg>";
return $SVG_RET;
}