summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/dispatcher.js.coffee
diff options
context:
space:
mode:
authorCiro Santilli <ciro.santilli@gmail.com>2014-10-21 10:40:36 +0200
committerCiro Santilli <ciro.santilli@gmail.com>2014-10-21 21:55:44 +0200
commit93e8a0563da89a59e35a876788d0a8bd442640da (patch)
tree5817637287caefc0264b6051081f222ddc6d3e59 /app/assets/javascripts/dispatcher.js.coffee
parent72abe9f679043a1ac566f60109b21cadace204d7 (diff)
downloadgitlab-ce-93e8a0563da89a59e35a876788d0a8bd442640da.tar.gz
Only run profile js on pages that need it
Diffstat (limited to 'app/assets/javascripts/dispatcher.js.coffee')
-rw-r--r--app/assets/javascripts/dispatcher.js.coffee4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/dispatcher.js.coffee b/app/assets/javascripts/dispatcher.js.coffee
index 00b52758fa8..1c52933f186 100644
--- a/app/assets/javascripts/dispatcher.js.coffee
+++ b/app/assets/javascripts/dispatcher.js.coffee
@@ -79,11 +79,15 @@ class Dispatcher
# Ensure we don't create a particular shortcut handler here. This is
# already created, where the network graph is created.
shortcut_handler = true
+ when 'users:show'
+ new User()
switch path.first()
when 'admin' then new Admin()
when 'dashboard'
shortcut_handler = new ShortcutsDashboardNavigation()
+ when 'profiles'
+ new Profile()
when 'projects'
switch path[1]
when 'wikis'