##// END OF EJS Templates
Speeds up the custom field edit view when having hundreds of projects....
Jean-Philippe Lang -
r14702:aa490a70b3dd
parent child
Show More
@@ -102,8 +102,9 when "IssueCustomField" %>
102 </fieldset>
102 </fieldset>
103
103
104 <fieldset class="box" id="custom_field_project_ids"><legend><%= l(:label_project_plural) %></legend>
104 <fieldset class="box" id="custom_field_project_ids"><legend><%= l(:label_project_plural) %></legend>
105 <% project_ids = @custom_field.project_ids.to_a %>
105 <%= render_project_nested_lists(Project.all) do |p|
106 <%= render_project_nested_lists(Project.all) do |p|
106 content_tag('label', check_box_tag('custom_field[project_ids][]', p.id, @custom_field.projects.to_a.include?(p), :id => nil) + ' ' + p)
107 content_tag('label', check_box_tag('custom_field[project_ids][]', p.id, project_ids.include?(p.id), :id => nil) + ' ' + p)
107 end %>
108 end %>
108 <%= hidden_field_tag('custom_field[project_ids][]', '', :id => nil) %>
109 <%= hidden_field_tag('custom_field[project_ids][]', '', :id => nil) %>
109 <p><%= check_all_links 'custom_field_project_ids' %></p>
110 <p><%= check_all_links 'custom_field_project_ids' %></p>
General Comments 0
You need to be logged in to leave comments. Login now