summaryrefslogtreecommitdiff
path: root/app/assets
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-02-23 13:41:03 +0000
committerPhil Hughes <me@iamphill.com>2016-02-23 13:41:03 +0000
commit01b965f6daf22eaeb511d35d3312c217cb1f2d33 (patch)
tree98e3a611d77c86821ec00a5451c7b83eabd8e362 /app/assets
parentd80205b75502ad53b4db085b0fd7fc2a1cb54b05 (diff)
downloadgitlab-ce-01b965f6daf22eaeb511d35d3312c217cb1f2d33.tar.gz
Correctly checks if tree view is on screen
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/dispatcher.js.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/dispatcher.js.coffee b/app/assets/javascripts/dispatcher.js.coffee
index 7eda9a18a51..4c6cf3417e8 100644
--- a/app/assets/javascripts/dispatcher.js.coffee
+++ b/app/assets/javascripts/dispatcher.js.coffee
@@ -77,7 +77,7 @@ class Dispatcher
when 'projects:show'
shortcut_handler = new ShortcutsNavigation()
- new TreeView() if $('#tree-slider')
+ new TreeView() if $('#tree-slider').length
when 'groups:show'
new Activities()
shortcut_handler = new ShortcutsNavigation()