Skip to content

Commit 45a38a4

Browse files
committed
update deprecated link_to_function. Localization.
1 parent d72eb8d commit 45a38a4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/views/active_scaffold_overrides/_export_form_body.html.erb

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<% export_config = active_scaffold_config.export %>
22
<h3><%=as_(:columns_for_export)%></h3>
33
<% if ActiveScaffold.js_framework == :jquery %>
4-
<%= link_to_function 'Select All', 'jQuery(".columnCheckbox").prop("checked", true);', :class => 'active-scaffold-footer' %>
5-
&nbsp;&nbsp;
6-
<%= link_to_function 'Select None', 'jQuery(".columnCheckbox").prop("checked", false);', :class => 'active-scaffold-footer' %>
4+
<%= link_to as_(:select_all), '#', onclick: 'jQuery(".columnCheckbox").prop("checked", true);', class: 'active-scaffold-footer' %>
5+
|
6+
<%= link_to as_(:select_none), '#', onclick: 'jQuery(".columnCheckbox").prop("checked", false);', class: 'active-scaffold-footer' %>
77
<% end %>
88
<div class="columns checkbox-list">
99
<% export_config.columns.each do |column| -%>
@@ -38,4 +38,4 @@
3838
</div>
3939
&nbsp;
4040
</div>
41-
<div class="separator"></div>
41+
<div class="separator"></div>

0 commit comments

Comments
 (0)