summaryrefslogtreecommitdiff
path: root/app/assets
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-02-20 14:58:42 +0100
committerDouwe Maan <douwe@gitlab.com>2015-02-21 11:13:31 +0100
commit198d75b3a8516e75c595c5baaa6359c239bc800d (patch)
tree4d861a7f3a40fe8a2f43ab6dee476e2f9e02cede /app/assets
parent6b0199ffc1c8e6a79b68a510052a1d1713afc29d (diff)
downloadgitlab-ce-198d75b3a8516e75c595c5baaa6359c239bc800d.tar.gz
Initialize ZenMode on commit show and milestone edit pages.
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/dispatcher.js.coffee3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/dispatcher.js.coffee b/app/assets/javascripts/dispatcher.js.coffee
index 1643ca941ff..ed1bdd6ca33 100644
--- a/app/assets/javascripts/dispatcher.js.coffee
+++ b/app/assets/javascripts/dispatcher.js.coffee
@@ -26,7 +26,7 @@ class Dispatcher
new ZenMode()
when 'projects:milestones:show'
new Milestone()
- when 'projects:milestones:new'
+ when 'projects:milestones:new', 'projects:milestones:edit'
new ZenMode()
when 'projects:issues:new','projects:issues:edit'
GitLab.GfmAutoComplete.setup()
@@ -54,6 +54,7 @@ class Dispatcher
when 'projects:commit:show'
new Commit()
new Diff()
+ new ZenMode()
shortcut_handler = new ShortcutsNavigation()
when 'projects:commits:show'
shortcut_handler = new ShortcutsNavigation()