From: Go MAEDA Date: Sun, 29 Apr 2018 09:57:11 +0000 (+0000) Subject: Replace check_all_links in new tracker form with toogle_checkboxes_link (#27807). X-Git-Tag: 4.0.0~315 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b8ed894a721939e97ff5a52a2f51a67f26d5749a;p=redmine.git 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 --- diff --git a/app/views/trackers/_form.html.erb b/app/views/trackers/_form.html.erb index 3d71d7694..3f5b88acb 100644 --- a/app/views/trackers/_form.html.erb +++ b/app/views/trackers/_form.html.erb @@ -46,13 +46,12 @@
<% if @projects.any? %> -
<%= l(:label_project_plural) %> +
<%= toggle_checkboxes_link("#tracker_project_ids input[type=checkbox]") %><%= l(:label_project_plural) %> <% 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) %> -

<%= check_all_links 'tracker_project_ids' %>

<% end %>