From 6699003282976333a3f9a4ebab2cbea63cff6e6d Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 16 Apr 2014 19:48:06 +0200 Subject: [PATCH] Small optimizations --- wcfsetup/install/files/acp/js/WCF.ACP.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/acp/js/WCF.ACP.js b/wcfsetup/install/files/acp/js/WCF.ACP.js index 2417814da6..43210e51be 100644 --- a/wcfsetup/install/files/acp/js/WCF.ACP.js +++ b/wcfsetup/install/files/acp/js/WCF.ACP.js @@ -2388,10 +2388,11 @@ WCF.ACP.Stat.Chart = Class.extend({ $.plot("#chart", $data, options); - $("#chart").bind("plothover", function (event, pos, item) { + $("#chart").on("plothover", function(event, pos, item) { if (item) { $("#chartTooltip").html(item.series.xaxis.tickFormatter(item.datapoint[0], item.series.xaxis) + ', ' + WCF.String.addThousandsSeparator(item.datapoint[1]) + ' ' + item.series.label).css({top: item.pageY + 5, left: item.pageX + 5}).wcfFadeIn(); - } else { + } + else { $("#chartTooltip").hide(); } }); -- 2.20.1