fix filters typo

pull/6827/head
Tim Felgentreff 14 years ago
parent 051e0dcd77
commit c778e2d9b1
  1. 2
      lib/widget/filters.rb

@ -35,7 +35,7 @@ class Widget::Filters < Widget::Base
def render_filters
active_filters = @query.filters.select {|f| f.class.display? }
engine::Filter.all.collect do |filter|
opts = :id => "tr_#{filter.underscore_name}", :class => "#{filter.underscore_name}"
opts = {:id => "tr_#{filter.underscore_name}", :class => "#{filter.underscore_name}"}
active_instance = active_filters.detect {|f| f.class == filter }
if active_instance
opts[:"data-selected"] = true

Loading…
Cancel
Save