##// END OF EJS Templates
Fixed: Cannot create a new category on ticket creation/update page with 0.8.7 (#4400)....
Jean-Philippe Lang -
r3190:8bab5b4730b1
parent child
Show More
@@ -28,7 +28,7
28 28 <p><%= f.select :category_id, (@project.issue_categories.collect {|c| [c.name, c.id]}), :include_blank => true %>
29 29 <%= prompt_to_remote(l(:label_issue_category_new),
30 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 32 :class => 'small', :tabindex => 199) if authorize_for('projects', 'add_issue_category') %></p>
33 33 <% end %>
34 34 <%= content_tag('p', f.select(:fixed_version_id,
@@ -69,7 +69,8 function setPredecessorFieldsVisibility() {
69 69 function promptToRemote(text, param, url) {
70 70 value = prompt(text + ':');
71 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 74 return false;
74 75 }
75 76 }
General Comments 0
You need to be logged in to leave comments. Login now