Defect #33169 » check-on-all-of-block-columns.patch
app/views/issues/index.html.erb | ||
---|---|---|
47 | 47 |
<label><%= radio_button_tag 'c[]', '', true %> <%= l(:description_selected_columns) %></label><br /> |
48 | 48 |
<label><%= radio_button_tag 'c[]', 'all_inline' %> <%= l(:description_all_columns) %></label> |
49 | 49 |
</p> |
50 |
<p> |
|
50 |
<p id="csv-export-block-columns">
|
|
51 | 51 |
<% @query.available_block_columns.each do |column| %> |
52 |
<label><%= check_box_tag 'c[]', column.name, @query.has_column?(column) %> <%= column.caption %></label> |
|
52 |
<label><%= check_box_tag 'c[]', column.name, @query.has_column?(column), :id => nil %> <%= column.caption %></label>
|
|
53 | 53 |
<% end %> |
54 | 54 |
</p> |
55 |
<%= javascript_tag do %> |
|
56 |
$(function(){ |
|
57 |
$('input[type="radio"][value="all_inline"]').click(function(){ |
|
58 |
var block_columns = $('#csv-export-block-columns input[type="checkbox"]'); |
|
59 |
if(block_columns.length && !block_columns.is(':checked')){ |
|
60 |
block_columns.prop('checked', true); |
|
61 |
} |
|
62 |
}); |
|
63 |
}); |
|
64 |
<% end %> |
|
55 | 65 |
<%= export_csv_encoding_select_tag %> |
56 | 66 |
<% if @issue_count > Setting.issues_export_limit.to_i %> |
57 | 67 |
<p class="icon icon-warning"> |
app/views/timelog/index.html.erb | ||
---|---|---|
40 | 40 |
<label><%= radio_button_tag 'c[]', '', true %> <%= l(:description_selected_columns) %></label><br /> |
41 | 41 |
<label><%= radio_button_tag 'c[]', 'all_inline' %> <%= l(:description_all_columns) %></label> |
42 | 42 |
</p> |
43 |
<p> |
|
43 |
<p id="csv-export-block-columns">
|
|
44 | 44 |
<% @query.available_block_columns.each do |column| %> |
45 |
<label><%= check_box_tag 'c[]', column.name, @query.has_column?(:column) %> <%= column.caption %></label> |
|
45 |
<label><%= check_box_tag 'c[]', column.name, @query.has_column?(:column), :id => nil %> <%= column.caption %></label>
|
|
46 | 46 |
<% end %> |
47 | 47 |
</p> |
48 |
<%= javascript_tag do %> |
|
49 |
$(function(){ |
|
50 |
$('input[type="radio"][value="all_inline"]').click(function(){ |
|
51 |
var block_columns = $('#csv-export-block-columns input[type="checkbox"]'); |
|
52 |
if(block_columns.length && !block_columns.is(':checked')){ |
|
53 |
block_columns.prop('checked', true); |
|
54 |
} |
|
55 |
}); |
|
56 |
}); |
|
57 |
<% end %> |
|
48 | 58 |
<%= export_csv_encoding_select_tag %> |
49 | 59 |
<p class="buttons"> |
50 | 60 |
<%= submit_tag l(:button_export), :name => nil, :onclick => "hideModal(this);", :data => { :disable_with => false } %> |