diff --git a/CHANGES.rst b/CHANGES.rst index 1689a2a..b0bba9e 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -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] diff --git a/src/collective/contact/widget/widgets.py b/src/collective/contact/widget/widgets.py index f82fb43..8e56116 100644 --- a/src/collective/contact/widget/widgets.py +++ b/src/collective/contact/widget/widgets.py @@ -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')) {