From: Marcel Werk Date: Thu, 3 Nov 2011 17:53:30 +0000 (+0100) Subject: Fixed the balloon tooltips X-Git-Tag: 2.0.0_Beta_1~1627 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2875507b97727f3f50519aca8637d45b810441c7;p=GitHub%2FWoltLab%2FWCF.git Fixed the balloon tooltips --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index a8daf75e58..725003d684 100644 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -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(); + } } };