Fixed a balloon tooltip issue
authorMarcel Werk <burntime@woltlab.com>
Thu, 3 Nov 2011 21:53:02 +0000 (22:53 +0100)
committerMarcel Werk <burntime@woltlab.com>
Thu, 3 Nov 2011 21:53:02 +0000 (22:53 +0100)
wcfsetup/install/files/js/WCF.js

index da85bfea86914d356f9441254d4c306d58271354..d42a4962d294be3e65b2cb6a53ac666493bd4106 100644 (file)
@@ -2747,6 +2747,9 @@ WCF.Effect.BalloonTooltip.prototype = {
        _mouseEnterHandler: function(event) {
                var $element = $(event.currentTarget);
                
+               var $title = $element.attr('title');
+               if ($title && $title !== '') $element.data('tooltip', $title);
+               
                // update text
                this._tooltip.children('span:eq(0)').text($element.data('tooltip'));