scm: code clean up Repositories Controller.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5708 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-05-08 09:47:42 +00:00
parent e68206852e
commit 615c81f3df
1 changed files with 3 additions and 2 deletions

View File

@ -45,9 +45,10 @@ class RepositoriesController < ApplicationController
@repository.save
end
render(:update) do |page|
page.replace_html "tab-content-repository", :partial => 'projects/settings/repository'
page.replace_html "tab-content-repository",
:partial => 'projects/settings/repository'
if @repository && !@project.repository
@project.reload #needed to reload association
@project.reload # needed to reload association
page.replace_html "main-menu", render_main_menu(@project)
end
end