diff options
author | Daniel Gerhardt <code@dgerhardt.net> | 2015-07-21 19:15:52 +0200 |
---|---|---|
committer | Daniel Gerhardt <code@dgerhardt.net> | 2015-07-21 19:51:16 +0200 |
commit | 65bd871be7112c32065ddd01b166d309c6efe06c (patch) | |
tree | 928a0c931a5507e04b1a90765f94704b44083d47 /app/assets | |
parent | 8ba1a7a03f849cd83a83476c920c2c0572e675d7 (diff) | |
download | gitlab-ce-65bd871be7112c32065ddd01b166d309c6efe06c.tar.gz |
Fix full screen mode for snippet comments
ZenMode is now initialized for snippet pages.
Fixes #2036.
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/dispatcher.js.coffee | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/assets/javascripts/dispatcher.js.coffee b/app/assets/javascripts/dispatcher.js.coffee index 2ab148bc296..81e73799271 100644 --- a/app/assets/javascripts/dispatcher.js.coffee +++ b/app/assets/javascripts/dispatcher.js.coffee @@ -128,7 +128,10 @@ class Dispatcher shortcut_handler = new ShortcutsNavigation() new ZenMode() new DropzoneInput($('.wiki-form')) - when 'snippets', 'labels', 'graphs' + when 'snippets' + shortcut_handler = new ShortcutsNavigation() + new ZenMode() if path[2] == 'show' + when 'labels', 'graphs' shortcut_handler = new ShortcutsNavigation() when 'project_members', 'deploy_keys', 'hooks', 'services', 'protected_branches' shortcut_handler = new ShortcutsNavigation() |