projects
/
GitHub
/
WoltLab
/
WCF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
456008d
)
Update Tooltip if title changes
author
Tim Düsterhus
<timwolla@arcor.de>
Fri, 7 Oct 2011 21:38:14 +0000
(23:38 +0200)
committer
Tim 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
patch
|
blob
|
blame
|
history
diff --git
a/wcfsetup/install/files/js/WCF.js
b/wcfsetup/install/files/js/WCF.js
index abe9eed14854e0cca18ed773c354c58e90749a3d..f4840ffb1a39697633360b1788d2bae3b7eb2be8 100644
(file)
--- 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",