Don't show tooltip if the mouse left the link

This commit is contained in:
Vincent Fretin 2013-03-08 15:04:24 +01:00
parent fe09814281
commit 1f04cef0b8
2 changed files with 8 additions and 0 deletions

View File

@ -5,6 +5,8 @@ Changelog
1.0 (unreleased)
----------------
- Don't show tooltip if the mouse left the link.
- Don't call tokenToUrl if value is --NOVALUE--.
[vincentfretin]

View File

@ -64,6 +64,12 @@ $(document).ready(function() {
}
};
$(document).delegate('.link-tooltip', 'mouseleave', function() {
if (pendingCall.procID) {
clearTimeout(pendingCall.procID);
pendingCall.procID = null;
}
});
$(document).delegate('.link-tooltip', 'mouseenter', function() {
var trigger = $(this);
if (!trigger.data('tooltip')) {