@@ -28,7 +28,7 | |||||
28 | <p><%= f.select :category_id, (@project.issue_categories.collect {|c| [c.name, c.id]}), :include_blank => true %> |
|
28 | <p><%= f.select :category_id, (@project.issue_categories.collect {|c| [c.name, c.id]}), :include_blank => true %> | |
29 | <%= prompt_to_remote(l(:label_issue_category_new), |
|
29 | <%= prompt_to_remote(l(:label_issue_category_new), | |
30 | l(:label_issue_category_new), 'category[name]', |
|
30 | l(:label_issue_category_new), 'category[name]', | |
31 | {:controller => 'projects', :action => 'add_issue_category', :id => @project}, |
|
31 | {:controller => 'projects', :action => 'add_issue_category', :id => @project, :authenticity_token => form_authenticity_token}, | |
32 | :class => 'small', :tabindex => 199) if authorize_for('projects', 'add_issue_category') %></p> |
|
32 | :class => 'small', :tabindex => 199) if authorize_for('projects', 'add_issue_category') %></p> | |
33 | <% end %> |
|
33 | <% end %> | |
34 | <%= content_tag('p', f.select(:fixed_version_id, |
|
34 | <%= content_tag('p', f.select(:fixed_version_id, |
@@ -69,7 +69,8 function setPredecessorFieldsVisibility() { | |||||
69 | function promptToRemote(text, param, url) { |
|
69 | function promptToRemote(text, param, url) { | |
70 | value = prompt(text + ':'); |
|
70 | value = prompt(text + ':'); | |
71 | if (value) { |
|
71 | if (value) { | |
72 | new Ajax.Request(url + '?' + param + '=' + encodeURIComponent(value), {asynchronous:true, evalScripts:true}); |
|
72 | var sep = (url.indexOf('?') < 0 ? '?' : '&' ) | |
|
73 | new Ajax.Request(url + sep + param + '=' + encodeURIComponent(value), {asynchronous:true, evalScripts:true}); | |||
73 | return false; |
|
74 | return false; | |
74 | } |
|
75 | } | |
75 | } |
|
76 | } |
General Comments 0
You need to be logged in to leave comments.
Login now