Update Tooltip if title changes
authorTim Düsterhus <timwolla@arcor.de>
Fri, 7 Oct 2011 21:38:14 +0000 (23:38 +0200)
committerTim Düsterhus <timwolla@arcor.de>
Fri, 7 Oct 2011 21:38:14 +0000 (23:38 +0200)
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

index abe9eed14854e0cca18ed773c354c58e90749a3d..f4840ffb1a39697633360b1788d2bae3b7eb2be8 100644 (file)
@@ -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",