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:
authorJouveer <35312684+Jouveer@users.noreply.github.com>2018-01-19 01:45:23 +0300
committerMatthieu Aubry <mattab@users.noreply.github.com>2018-01-19 01:45:23 +0300
commited78cc900b277ce9fb3b3caa13f31c508e5df4a3 (patch)
treede468d1681e1e809d6e65cb4afbc2c4401e9be2b /plugins
parenta14b54f14e82e2c5fecc8247071b5e367836ccf3 (diff)
Modal Button Fix (#12462)
Modals popover can now be closed with keyboard
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Morpheus/javascripts/piwikHelper.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/Morpheus/javascripts/piwikHelper.js b/plugins/Morpheus/javascripts/piwikHelper.js
index 1206a9b569..777c726e53 100644
--- a/plugins/Morpheus/javascripts/piwikHelper.js
+++ b/plugins/Morpheus/javascripts/piwikHelper.js
@@ -248,6 +248,12 @@ var piwikHelper = {
delete options.fixedFooter;
}
+ if (options && !options.ready) {
+ options.ready = function () {
+ $(".modal.open a").focus();
+ };
+ }
+
domElem.show();
$content.openModal(options);
},