|
|
|
@ -1,6 +1,8 @@ |
|
|
|
|
<script type="text/javascript"> |
|
|
|
|
//<![CDATA[ |
|
|
|
|
|
|
|
|
|
var set_filters, set_group_bys, restore_query_inputs; |
|
|
|
|
|
|
|
|
|
set_filters = function () { |
|
|
|
|
// Activate recent filters on loading |
|
|
|
|
<% query.filters.select {|f| f.display? }.each do |f| %> |
|
|
|
@ -8,7 +10,7 @@ set_filters = function() { |
|
|
|
|
"<%= f.operator.to_s %>"<%= "," if f.values %> |
|
|
|
|
<%= f.values.to_json if f.values %>); |
|
|
|
|
<% end %> |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
set_group_bys = function () { |
|
|
|
|
// Activate recent group_bys on loading |
|
|
|
@ -16,7 +18,7 @@ set_group_bys = function() { |
|
|
|
|
<%= "show_group_by_column('#{group_by.class.underscore_name}');" if group_by.column? %> |
|
|
|
|
<%= "show_group_by_row('#{group_by.class.underscore_name}');" if group_by.row? %> |
|
|
|
|
<% end %> |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
restore_query_inputs = function () { |
|
|
|
|
init_group_bys(); |
|
|
|
@ -24,7 +26,7 @@ restore_query_inputs = function() { |
|
|
|
|
disable_all_group_bys(); |
|
|
|
|
set_filters(); |
|
|
|
|
set_group_bys(); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
restore_query_inputs(); |
|
|
|
|
//]]> |
|
|
|
|