diff options
author | Phil Hughes <me@iamphill.com> | 2016-02-23 13:41:03 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-02-23 13:41:03 +0000 |
commit | 01b965f6daf22eaeb511d35d3312c217cb1f2d33 (patch) | |
tree | 98e3a611d77c86821ec00a5451c7b83eabd8e362 /app/assets | |
parent | d80205b75502ad53b4db085b0fd7fc2a1cb54b05 (diff) | |
download | gitlab-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.coffee | 2 |
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() |