From: Marcel Werk Date: Wed, 16 Apr 2014 17:48:06 +0000 (+0200) Subject: Small optimizations X-Git-Tag: 2.1.0_Alpha_1~894 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6699003282976333a3f9a4ebab2cbea63cff6e6d;p=GitHub%2FWoltLab%2FWCF.git Small optimizations --- 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(); } });