##// END OF EJS Templates
scm: code clean up RepositoriesHelper....
Toshi MARUYAMA -
r5498:7ada45d3a212
parent child
Show More
@@ -163,18 +163,18 module RepositoriesHelper
163 scm_options << ["Repository::#{scm}".constantize.scm_name, scm]
163 scm_options << ["Repository::#{scm}".constantize.scm_name, scm]
164 end
164 end
165 end
165 end
166 select_tag('repository_scm',
166 select_tag('repository_scm',
167 options_for_select(scm_options, repository.class.name.demodulize),
167 options_for_select(scm_options, repository.class.name.demodulize),
168 :disabled => (repository && !repository.new_record?),
168 :disabled => (repository && !repository.new_record?),
169 :onchange => remote_function(
169 :onchange => remote_function(
170 :url => {
170 :url => {
171 :controller => 'repositories',
171 :controller => 'repositories',
172 :action => 'edit',
172 :action => 'edit',
173 :id => @project
173 :id => @project
174 },
174 },
175 :method => :get,
175 :method => :get,
176 :with => "Form.serialize(this.form)")
176 :with => "Form.serialize(this.form)")
177 )
177 )
178 end
178 end
179
179
180 def with_leading_slash(path)
180 def with_leading_slash(path)
General Comments 0
You need to be logged in to leave comments. Login now