From ea2294bc244fa3bd00f1926b2dd12dd6fac37b7a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 18 Dec 2011 14:53:49 +0100 Subject: [PATCH] Remove title of balloon-tooltip-item when it changed --- wcfsetup/install/files/js/WCF.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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')); -- 2.20.1