diff options
author | Jacob Schatz <jschatz@gitlab.com> | 2018-02-21 20:22:56 +0000 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2018-02-21 20:22:56 +0000 |
commit | bd8290d93e4a0669a78c23cecdd1f5d2164d19cf (patch) | |
tree | 58c32d162a4000318115d61bd44a3dd063ae316b /app/assets/javascripts/docs | |
parent | ace12dd1c718ef940611ea0b41e5ed5e6e6769fc (diff) | |
download | gitlab-ce-bd8290d93e4a0669a78c23cecdd1f5d2164d19cf.tar.gz |
Rest of Dispatcher Refactor
Diffstat (limited to 'app/assets/javascripts/docs')
-rw-r--r-- | app/assets/javascripts/docs/docs_bundle.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/app/assets/javascripts/docs/docs_bundle.js b/app/assets/javascripts/docs/docs_bundle.js index a32bd6d0fc7..897439f56b0 100644 --- a/app/assets/javascripts/docs/docs_bundle.js +++ b/app/assets/javascripts/docs/docs_bundle.js @@ -4,10 +4,7 @@ function addMousetrapClick(el, key) { el.addEventListener('click', () => Mousetrap.trigger(key)); } -function domContentLoaded() { +export default () => { addMousetrapClick(document.querySelector('.js-trigger-shortcut'), '?'); addMousetrapClick(document.querySelector('.js-trigger-search-bar'), 's'); -} - -document.addEventListener('DOMContentLoaded', domContentLoaded); - +}; |