Correctly checks if tree view is on screen

This commit is contained in:
Phil Hughes
2016-02-23 13:41:03 +00:00
parent d80205b755
commit 01b965f6da
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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()
+1 -1
View File
@@ -64,7 +64,7 @@ class Projects::RefsController < Projects::ApplicationController
}
end
offset = (@offset + @limit)
offset = (@offset + @limit)
if contents.size > offset
@more_log_url = logs_file_namespace_project_ref_path(@project.namespace, @project, @ref, @path || '', offset: offset)
end