blocks 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/app/views/blocks/_table.html.erb +2 -1
- metadata +1 -1
@@ -26,7 +26,8 @@
|
|
26
26
|
<% table.columns.each do |column| %>
|
27
27
|
<% header_html = options.merge(column.options)[:header_html] %>
|
28
28
|
<% if options.merge(column.options)[:sortable] %>
|
29
|
-
<% sort_class = params[:order] != column.options[:order].try(:to_s) ? "sorting" : (params[:sort_mode] == "desc" ? "sorting_desc" : "sorting_asc") %>
|
29
|
+
<% sort_class = params[:order] != column.options[:order].try(:to_s) ? "sorting" : (params[:sort_mode] == "desc" ? "sorting_desc" : "sorting_asc") %>
|
30
|
+
<% header_html = {} if header_html.nil? %>
|
30
31
|
<% header_html[:class] ||= "" %>
|
31
32
|
<% header_html[:class] += " #{sort_class}" %>
|
32
33
|
<% end %>
|