fix progressbar Table cache check

pull/6827/head
jwollert 14 years ago
parent f91a60dd08
commit 821a02e4d0
  1. 2
      lib/widget/table/progressbar.rb

@ -2,7 +2,7 @@ class Widget::Table::Progressbar < Widget::Base
THRESHHOLD = 500
def render
if Widget::Table::ReportTable.new(@query).cached? || size = @query.size >= THRESHHOLD
if !Widget::Table::ReportTable.new(@query).cached? && size = @query.size >= THRESHHOLD
write(content_tag :div, :id => "progressbar", :class => "form_controls",
:"data-query-size" => size do
content_tag :div, :id => "progressbar-load-table-question", :class => "form_controls" do

Loading…
Cancel
Save