2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-04 05:16:45 +00:00

SVG.pm: add class to SVG labels and plots (Froum #27803)

git-svn-id: https://svn.fhem.de/fhem/trunk@6756 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2014-10-12 13:13:26 +00:00
parent 592f6bc98c
commit 661bd94945

View File

@ -116,7 +116,7 @@ SVG_FwDetail($@)
my $ret = ($nobr ? "" : "<br>");
$ret .= "$text " if($text);
$ret .= FW_pHPlain("detail=$d", $alias) if(!$FW_subdir);
$ret .= FW_pH("detail=$d", $alias,0, "SVGlabel SVG_$d", 1,0) if(!$FW_subdir);
$ret .= "<br>";
return $ret;
}
@ -182,7 +182,7 @@ SVG_FwFn($$$$)
if(AttrVal($d,"plotmode",$FW_plotmode) eq "SVG") {
my ($w, $h) = split(",", AttrVal($d,"plotsize",$FW_plotsize));
$ret .= "<div class=\"SVGplot\">";
$ret .= "<div class=\"SVGplot SVG_$d\">";
if(AttrVal($FW_wname, "plotEmbed",
$FW_userAgent !~ m/(iPhone|iPad|iPod).*OS (8|9)/)) {