Fixed the balloon tooltips
authorMarcel Werk <burntime@woltlab.com>
Thu, 3 Nov 2011 17:53:30 +0000 (18:53 +0100)
committerMarcel Werk <burntime@woltlab.com>
Thu, 3 Nov 2011 17:53:30 +0000 (18:53 +0100)
wcfsetup/install/files/js/WCF.js

index a8daf75e5836c87d6c8e95703e9e820561b50c3f..725003d6845595e365fb8b1a6235ed6239f78079 100644 (file)
@@ -2714,6 +2714,16 @@ WCF.Effect.BalloonTooltip.prototype = {
                        // show tooltip
                        this.tooltip.fadeIn('fast');
                }
+       },
+       
+       _mouseLeaveHandler: function(event) {
+               var $element = $(event.currentTarget);
+               if ($element.data('tooltip')) {
+                       $element.attr('title', $element.data('tooltip'));
+                       $element.data('tooltip', '');
+                       
+                       this.tooltip.hide();
+               }
        }
 };