summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGES.rst3
-rw-r--r--src/collective/contact/widget/widgets.py4
2 files changed, 6 insertions, 1 deletions
diff --git a/CHANGES.rst b/CHANGES.rst
index 8909af6..2fd11df 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -5,7 +5,8 @@ Changelog
1.0 (unreleased)
----------------
-- Nothing changed yet.
+- Don't open tooltip in tooltip.
+ [vincentfretin]
0.12 (2013-03-12)
diff --git a/src/collective/contact/widget/widgets.py b/src/collective/contact/widget/widgets.py
index 78ffc36..a58842c 100644
--- a/src/collective/contact/widget/widgets.py
+++ b/src/collective/contact/widget/widgets.py
@@ -73,6 +73,10 @@ $(document).ready(function() {
});
$(document).delegate('.link-tooltip', 'mouseenter', function() {
var trigger = $(this);
+ // don't open tooltip in tooltip
+ if (trigger.closest('.tooltip').length) {
+ return;
+ }
if (!trigger.data('tooltip')) {
if (pendingCall.procID) {
clearTimeout(pendingCall.procID);