pull/6827/head
parent
6b7a6d9f10
commit
6493c5ed04
@ -0,0 +1,9 @@ |
||||
/*jslint white: false, nomen: true, devel: true, on: true, debug: false, evil: true, onevar: false, browser: true, white: false, indent: 2 */ |
||||
/*global window, $, $$, Reporting, Effect, Ajax */ |
||||
|
||||
Reporting.Table = { |
||||
}; |
||||
|
||||
Reporting.onload(function () { |
||||
Reporting.RestoreQuery.restore_group_bys(); |
||||
}); |
@ -0,0 +1,20 @@ |
||||
class Widget::Table::Progressbar < Widget::Base |
||||
attr_accessor :threshhold |
||||
|
||||
def render |
||||
@threshhold ||= 5 |
||||
size = @query.size |
||||
content_tag :div, :class => "progressbar", :style => "display:none", |
||||
:"data-query-size" => size do |
||||
if size > @threshhold |
||||
content_tag :div, :id => "progressbar-load-table-question" do |
||||
tag(:span, ::I18n.t(:load_query_question, size), :id => "progressbar-text") |
||||
tag(:span, ::I18n.t(:label_yes), :id => "progressbar-yes") |
||||
tag(:span, ::I18n.t(:label_no), :id => "progressbar-no") |
||||
end |
||||
else |
||||
tag :span, :id => "progressbar-load-table-directly" |
||||
end |
||||
end |
||||
end |
||||
end |
Loading…
Reference in new issue