1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-04-03 22:41:39 +00:00

Replace check_all_links in new tracker form with toogle_checkboxes_link (#27807).

Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@17318 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2018-04-29 09:57:11 +00:00
parent 8662c7ef8b
commit b8ed894a72

View File

@ -46,13 +46,12 @@
<div class="splitcontentright"> <div class="splitcontentright">
<% if @projects.any? %> <% if @projects.any? %>
<fieldset class="box" id="tracker_project_ids"><legend><%= l(:label_project_plural) %></legend> <fieldset class="box" id="tracker_project_ids"><legend><%= toggle_checkboxes_link("#tracker_project_ids input[type=checkbox]") %><%= l(:label_project_plural) %></legend>
<% project_ids = @tracker.project_ids.to_a %> <% project_ids = @tracker.project_ids.to_a %>
<%= render_project_nested_lists(@projects) do |p| <%= render_project_nested_lists(@projects) do |p|
content_tag('label', check_box_tag('tracker[project_ids][]', p.id, project_ids.include?(p.id), :id => nil) + ' ' + h(p)) content_tag('label', check_box_tag('tracker[project_ids][]', p.id, project_ids.include?(p.id), :id => nil) + ' ' + h(p))
end %> end %>
<%= hidden_field_tag('tracker[project_ids][]', '', :id => nil) %> <%= hidden_field_tag('tracker[project_ids][]', '', :id => nil) %>
<p><%= check_all_links 'tracker_project_ids' %></p>
</fieldset> </fieldset>
<% end %> <% end %>
</div> </div>