summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Fretin <vincent.fretin@gmail.com>2013-03-12 18:37:40 (GMT)
committerVincent Fretin <vincent.fretin@gmail.com>2013-03-12 18:37:40 (GMT)
commit497ef0a54afc78d19c13fb7a36325af48c0f040f (patch)
treefd26215831081339c10eea00e5e85823300cc0c4
parent59173948ddfbbe5a323048eebb271fda982e4b03 (diff)
downloadcollective.contact.widget-497ef0a54afc78d19c13fb7a36325af48c0f040f.zip
collective.contact.widget-497ef0a54afc78d19c13fb7a36325af48c0f040f.tar.gz
collective.contact.widget-497ef0a54afc78d19c13fb7a36325af48c0f040f.tar.bz2
don't open tooltip in tooltip
-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);