From 4541ed92d43e2cbf355661521eff78d0e1fed977 Mon Sep 17 00:00:00 2001 From: manson Date: Mon, 21 Jul 2014 14:11:58 +0800 Subject: [PATCH] update backend index table filter js --- app/views/admin/announcements/_index.html.erb | 6 +- app/views/admin/announcements/index.html.erb | 89 +------------------ 2 files changed, 2 insertions(+), 93 deletions(-) diff --git a/app/views/admin/announcements/_index.html.erb b/app/views/admin/announcements/_index.html.erb index e2354e3..f416919 100644 --- a/app/views/admin/announcements/_index.html.erb +++ b/app/views/admin/announcements/_index.html.erb @@ -56,8 +56,4 @@ content_tag :div, class: "bottomnav clearfix" do content_tag :div, paginate(@bulletins), class: "pagination pagination-centered" end -%> - - \ No newline at end of file +%> \ No newline at end of file diff --git a/app/views/admin/announcements/index.html.erb b/app/views/admin/announcements/index.html.erb index fb5add3..5606225 100644 --- a/app/views/admin/announcements/index.html.erb +++ b/app/views/admin/announcements/index.html.erb @@ -1,28 +1,4 @@ -<% content_for :right_nav do %> - -
- <% @filter_fields.keys.each do |field| %> -
-
- <% @filter_fields[field].each do |val| %> - <%= link_to t(val[:title]), "#", :onclick => "filter.addFilter('filters[#{field}][]=#{val[:id]}')", :class => "btn btn-small #{is_filter_active?(field, val[:id])}", :id => "filter_#{val[:id]}" %> - <% end %> -
- -
- <% end %> -
-<% end %> +<%= render_filter @filter_fields %> <%= render 'index'%> @@ -31,68 +7,5 @@ <%= render 'layouts/delete_modal', delete_options: @delete_options %> \ No newline at end of file