From: Tim Düsterhus Date: Sun, 18 Dec 2011 13:53:49 +0000 (+0100) Subject: Remove title of balloon-tooltip-item when it changed X-Git-Tag: 2.0.0_Beta_1~1507^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ea2294bc244fa3bd00f1926b2dd12dd6fac37b7a;p=GitHub%2FWoltLab%2FWCF.git Remove title of balloon-tooltip-item when it changed --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 2b7ccaa103..3844ef0259 100644 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -2789,7 +2789,10 @@ WCF.Effect.BalloonTooltip.prototype = { var $element = $(event.currentTarget); var $title = $element.attr('title'); - if ($title && $title !== '') $element.data('tooltip', $title); + if ($title && $title !== '') { + $element.data('tooltip', $title); + $element.removeAttr('title'); + } // update text this._tooltip.children('span:eq(0)').text($element.data('tooltip'));