Small optimizations
authorMarcel Werk <burntime@woltlab.com>
Wed, 16 Apr 2014 17:48:06 +0000 (19:48 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 16 Apr 2014 17:48:06 +0000 (19:48 +0200)
wcfsetup/install/files/acp/js/WCF.ACP.js

index 2417814da6cceeb9bce5a4e0e7d4e1773c59d4d6..43210e51be8b119b7f203465d9e5fd538fcf1465 100644 (file)
@@ -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();
                        }
                });