From 4711e025d4c2eba64a300c377a4c5c558d67dcbb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 7 Oct 2011 23:38:14 +0200 Subject: [PATCH] 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? --- wcfsetup/install/files/js/WCF.js | 5 +++++ 1 file changed, 5 insertions(+) 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", -- 2.20.1