From 8cfb8ca1fafa1ef5eef15779a2870fe95d2ee1f5 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 6 Jan 2012 14:53:27 +0100 Subject: [PATCH] Added some optimizations to balloon tooltips --- wcfsetup/install/files/js/WCF.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 0138898cd2..bd73606858 100644 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -2806,6 +2806,7 @@ WCF.Effect.BalloonTooltip.prototype = { $.proxy(this._mouseEnterHandler, this), $.proxy(this._mouseLeaveHandler, this) ); + $element.click($.proxy(this._mouseLeaveHandler, this)); } } }, @@ -2824,6 +2825,12 @@ WCF.Effect.BalloonTooltip.prototype = { $element.removeAttr('title'); } + // reset tooltip position + this._tooltip.css({ + top: "0px", + left: "0px" + }); + // update text this._tooltip.children('span:eq(0)').text($element.data('tooltip')); -- 2.20.1