git-svn-id: https://dev.finn.de/svn/cockpit/branches/deployment_merge@1996 7926756e-e54e-46e6-9721-ed318f58905epull/6827/head
parent
a2c93a41b7
commit
4da5335c5b
@ -1,30 +1,33 @@ |
|||||||
<script type="text/javascript"> |
<script type="text/javascript"> |
||||||
//<![CDATA[ |
//<![CDATA[ |
||||||
|
|
||||||
set_filters = function() { |
var set_filters, set_group_bys, restore_query_inputs; |
||||||
|
|
||||||
|
set_filters = function () { |
||||||
// Activate recent filters on loading |
// Activate recent filters on loading |
||||||
<% query.filters.select {|f| f.display? }.each do |f| %> |
<% query.filters.select {|f| f.display? }.each do |f| %> |
||||||
restore_filter("<%= f.class.underscore_name %>", |
restore_filter("<%= f.class.underscore_name %>", |
||||||
"<%= f.operator.to_s %>"<%= "," if f.values %> |
"<%= f.operator.to_s %>"<%= "," if f.values %> |
||||||
<%= f.values.to_json if f.values %>); |
<%= f.values.to_json if f.values %>); |
||||||
<% end %> |
<% end %> |
||||||
} |
}; |
||||||
|
|
||||||
set_group_bys = function() { |
set_group_bys = function () { |
||||||
// Activate recent group_bys on loading |
// Activate recent group_bys on loading |
||||||
<% query.group_bys.each do |group_by| %> |
<% query.group_bys.each do |group_by| %> |
||||||
<%= "show_group_by_column('#{group_by.class.underscore_name}');" if group_by.column? %> |
<%= "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? %> |
<%= "show_group_by_row('#{group_by.class.underscore_name}');" if group_by.row? %> |
||||||
<% end %> |
<% end %> |
||||||
} |
}; |
||||||
|
|
||||||
restore_query_inputs = function() { |
restore_query_inputs = function () { |
||||||
|
init_group_bys(); |
||||||
disable_all_filters(); |
disable_all_filters(); |
||||||
disable_all_group_bys(); |
disable_all_group_bys(); |
||||||
set_filters(); |
set_filters(); |
||||||
set_group_bys(); |
set_group_bys(); |
||||||
} |
}; |
||||||
|
|
||||||
restore_query_inputs(); |
restore_query_inputs(); |
||||||
//]]> |
//]]> |
||||||
</script> |
</script> |
||||||
|
Loading…
Reference in new issue