2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-13 17:26:34 +00:00

Click-Fix

git-svn-id: https://svn.fhem.de/fhem/trunk@647 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2010-07-05 10:29:30 +00:00
parent d20a668793
commit ce46465457

View File

@ -134,7 +134,6 @@ svg_labelselect(evt)
function function
svg_click(evt) svg_click(evt)
{ {
var d = evt.target.ownerDocument;
var t=evt.target; var t=evt.target;
var y_mul = parseFloat(t.getAttribute("y_mul")); var y_mul = parseFloat(t.getAttribute("y_mul"));
var y_h = parseFloat(t.getAttribute("y_h")); var y_h = parseFloat(t.getAttribute("y_h"));
@ -149,6 +148,7 @@ svg_click(evt)
var ts = (d.getHours() < 10 ? '0' : '') + d.getHours() + ":"+ var ts = (d.getHours() < 10 ? '0' : '') + d.getHours() + ":"+
(d.getMinutes() < 10 ? '0' : '') + d.getMinutes(); (d.getMinutes() < 10 ? '0' : '') + d.getMinutes();
var tl = d.getElementById('svg_title');
var tl = evt.target.ownerDocument.getElementById('svg_title');
tl.firstChild.nodeValue = t.getAttribute("title")+": "+y_org+" ("+ts+")"; tl.firstChild.nodeValue = t.getAttribute("title")+": "+y_org+" ("+ts+")";
} }