From: Jan D. Behrens Date: Sat, 4 Aug 2012 14:31:05 +0000 (+0200) Subject: Also fixed the damage graph tooltips X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8b732ae51c19efa11e8134a61dcb003bb47975ca;p=xonotic%2Fxonstat.git Also fixed the damage graph tooltips --- 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; } });