From: Tim Düsterhus Date: Fri, 7 Oct 2011 21:38:14 +0000 (+0200) Subject: Update Tooltip if title changes X-Git-Tag: 2.0.0_Beta_1~1653^2^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4711e025d4c2eba64a300c377a4c5c558d67dcbb;p=GitHub%2FWoltLab%2FWCF.git Update Tooltip if title changes Problems occured for example when disabling cronjobs. Currently it only updates if the mouse moves, maybe we can get it to update instantly? --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index abe9eed148..f4840ffb1a 100644 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -2456,6 +2456,11 @@ WCF.Effect.BalloonTooltip.prototype = { * Moves tooltip to cursor position. */ _mouseMoveHandler: function(event) { + var $element = $(event.currentTarget); + if ($element.attr('title')) { + this._mouseEnterHandler(event); + } + if ($(document).width() - event.pageX < this.tooltip.getDimensions().width) { this.tooltip.css({ top: (event.pageY) + "px",