Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Aubry <matt@piwik.org>2015-07-16 18:21:39 +0300
committerMatthieu Aubry <matt@piwik.org>2015-07-16 18:21:39 +0300
commitebbe91595a549a8d705e92e161297ff895a55105 (patch)
tree5e9df69770875a36a22ea0f3670f47def566a3a0
parent7cb8e431320ec0313cac5ff28f53bcee6d6ad632 (diff)
parentc54edb6e9bc6c2a3718d33ef79d4049aadc14a52 (diff)
Merge pull request #8355 from piwik/7768_fix_tooltip_hide
Hide jQuery UI tooltip when dialog is closed by Esc key
-rw-r--r--plugins/Morpheus/javascripts/piwikHelper.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/Morpheus/javascripts/piwikHelper.js b/plugins/Morpheus/javascripts/piwikHelper.js
index 259417a250..163ea90160 100644
--- a/plugins/Morpheus/javascripts/piwikHelper.js
+++ b/plugins/Morpheus/javascripts/piwikHelper.js
@@ -468,5 +468,12 @@ try {
// Fix jQuery UI dialogs scrolling when click on links with tooltips
jQuery.ui.dialog.prototype._focusTabbable = $.noop;
+ // Fix jQuery UI tooltip displaying when dialog is closed by Esc key
+ jQuery(document).keyup(function(e) {
+ if (e.keyCode == 27) {
+ $('.ui-tooltip').hide();
+ }
+ });
+
} catch (e) {}
}(jQuery));