Added a bit of AJAX on the SCM browser (tree view).

git-svn-id: http://redmine.rubyforge.org/svn/trunk@862 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2007-10-22 17:45:41 +00:00
parent b30b6717a2
commit 8ca4d35dcc
7 changed files with 44 additions and 18 deletions
+5 -1
View File
@@ -56,7 +56,11 @@ class RepositoriesController < ApplicationController
def browse
@entries = @repository.entries(@path, @rev)
show_error and return unless @entries
if request.xhr?
@entries ? render(:partial => 'dir_list_content') : render(:nothing => true)
else
show_error unless @entries
end
end
def changes