summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/dispatcher.js.coffee
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2014-10-01 09:10:13 +0200
committerRobert Schilling <rschilling@student.tugraz.at>2014-10-02 09:59:01 +0200
commit093c2c6a01fe2cfaff72b2624b65896fed339ab5 (patch)
tree77943db8a0fead7fb12889e16fd67798399262ff /app/assets/javascripts/dispatcher.js.coffee
parent51bc636eb34934747f7808b2fc0cd59e9cb8e6b6 (diff)
downloadgitlab-ce-093c2c6a01fe2cfaff72b2624b65896fed339ab5.tar.gz
Apply ZEN mode to all GFM forms
Diffstat (limited to 'app/assets/javascripts/dispatcher.js.coffee')
-rw-r--r--app/assets/javascripts/dispatcher.js.coffee3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/javascripts/dispatcher.js.coffee b/app/assets/javascripts/dispatcher.js.coffee
index 086c09f196e..00b52758fa8 100644
--- a/app/assets/javascripts/dispatcher.js.coffee
+++ b/app/assets/javascripts/dispatcher.js.coffee
@@ -27,6 +27,8 @@ class Dispatcher
new ZenMode()
when 'projects:milestones:show'
new Milestone()
+ when 'projects:milestones:new'
+ new ZenMode()
when 'projects:issues:new','projects:issues:edit'
GitLab.GfmAutoComplete.setup()
shortcut_handler = new ShortcutsNavigation()
@@ -87,6 +89,7 @@ class Dispatcher
when 'wikis'
new Wikis()
shortcut_handler = new ShortcutsNavigation()
+ new ZenMode()
when 'snippets', 'labels', 'graphs'
shortcut_handler = new ShortcutsNavigation()
when 'team_members', 'deploy_keys', 'hooks', 'services', 'protected_branches'