From 8b732ae51c19efa11e8134a61dcb003bb47975ca Mon Sep 17 00:00:00 2001 From: "Jan D. Behrens" Date: Sat, 4 Aug 2012 16:31:05 +0200 Subject: [PATCH] Also fixed the damage graph tooltips --- xonstat/templates/player_info.mako | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xonstat/templates/player_info.mako b/xonstat/templates/player_info.mako index c16afb6..ff148b3 100644 --- a/xonstat/templates/player_info.mako +++ b/xonstat/templates/player_info.mako @@ -100,8 +100,9 @@ ${nav.nav('players')} $('#dmg-graph').bind("plothover", function (event, pos, item) { if (item) { - if (previousPoint != item.dataIndex) { + if ((previousLabel != item.series.label) || (previousPoint != item.dataIndex)) { previousPoint = item.dataIndex; + previousLabel = item.series.label; $("#tooltip").remove(); var x = item.datapoint[0].toFixed(2), @@ -113,6 +114,7 @@ ${nav.nav('players')} else { $("#tooltip").remove(); previousPoint = null; + previousLabel = null; } }); -- 2.39.2