scm: code clean up RepositoriesHelper.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5618 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
ca5ce92cfc
commit
7ada45d3a2
@ -163,18 +163,18 @@ module RepositoriesHelper
|
|||||||
scm_options << ["Repository::#{scm}".constantize.scm_name, scm]
|
scm_options << ["Repository::#{scm}".constantize.scm_name, scm]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
select_tag('repository_scm',
|
select_tag('repository_scm',
|
||||||
options_for_select(scm_options, repository.class.name.demodulize),
|
options_for_select(scm_options, repository.class.name.demodulize),
|
||||||
:disabled => (repository && !repository.new_record?),
|
:disabled => (repository && !repository.new_record?),
|
||||||
:onchange => remote_function(
|
:onchange => remote_function(
|
||||||
:url => {
|
:url => {
|
||||||
:controller => 'repositories',
|
:controller => 'repositories',
|
||||||
:action => 'edit',
|
:action => 'edit',
|
||||||
:id => @project
|
:id => @project
|
||||||
},
|
},
|
||||||
:method => :get,
|
:method => :get,
|
||||||
:with => "Form.serialize(this.form)")
|
:with => "Form.serialize(this.form)")
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
def with_leading_slash(path)
|
def with_leading_slash(path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user