mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 10:46:53 +00:00
svg.js: fix show hidden lines (Forum #33298)
git-svn-id: https://svn.fhem.de/fhem/trunk@7860 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
dca95ad71e
commit
ee0d9b4ae4
@ -1,7 +1,7 @@
|
||||
"use strict";
|
||||
var svgNS = "http://www.w3.org/2000/svg";
|
||||
var svg_b64 ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||
var svg_initialized={};
|
||||
var svg_initialized={}, lastHidden;
|
||||
|
||||
|
||||
|
||||
@ -139,7 +139,8 @@ sv_menu(evt, embed)
|
||||
$(tl).attr("hiddentitle", $(tl).text());
|
||||
if($(sel).attr(pn) != null)
|
||||
$(tl).text($(label).attr("title"));
|
||||
showOtherLines(1, 0);
|
||||
lastHidden = lid;
|
||||
showOtherLines(1, 0)
|
||||
}
|
||||
}
|
||||
|
||||
@ -218,7 +219,7 @@ sv_menu(evt, embed)
|
||||
{
|
||||
$(svg).find("[id]").each(function(){
|
||||
var id = $(this).attr("id");
|
||||
if(id.indexOf("line_") != 0 || id == lid)
|
||||
if(id.indexOf("line_") != 0 || id == lastHidden)
|
||||
return;
|
||||
var h = parseFloat($(this).attr("y_h"));
|
||||
$(this).attr("transform", "translate(0,"+h*(1-currval)+") "+
|
||||
|
Loading…
x
Reference in New Issue
Block a user