mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-01 13:19: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:
parent
8662c7ef8b
commit
b8ed894a72
@ -46,13 +46,12 @@
|
||||
|
||||
<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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user