]> source.dussan.org Git - redmine.git/commitdiff
Replace check_all_links in new tracker form with toogle_checkboxes_link (#27807).
authorGo MAEDA <maeda@farend.jp>
Sun, 29 Apr 2018 09:57:11 +0000 (09:57 +0000)
committerGo MAEDA <maeda@farend.jp>
Sun, 29 Apr 2018 09:57:11 +0000 (09:57 +0000)
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@17318 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/trackers/_form.html.erb

index 3d71d769476886a9e03d357707f7bbd6c4520d63..3f5b88acbec8f18d8fee53753cdb1608dde73437 100644 (file)
 
 <div class="splitcontentright">
 <% 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 %>
 <%= 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))
 end %>
 <%= hidden_field_tag('tracker[project_ids][]', '', :id => nil) %>
-<p><%= check_all_links 'tracker_project_ids' %></p>
 </fieldset>
 <% end %>
 </div>