diff options
author | Jouveer <35312684+Jouveer@users.noreply.github.com> | 2018-01-19 01:45:23 +0300 |
---|---|---|
committer | Matthieu Aubry <mattab@users.noreply.github.com> | 2018-01-19 01:45:23 +0300 |
commit | ed78cc900b277ce9fb3b3caa13f31c508e5df4a3 (patch) | |
tree | de468d1681e1e809d6e65cb4afbc2c4401e9be2b /plugins | |
parent | a14b54f14e82e2c5fecc8247071b5e367836ccf3 (diff) |
Modal Button Fix (#12462)
Modals popover can now be closed with keyboard
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Morpheus/javascripts/piwikHelper.js | 6 |
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); }, |