Sha256: 1f1c67afe894afeda8ae0f9b92293703f327b083aeeb18ff3984b5deae85e8a6

Contents?: true

Size: 1.45 KB

Versions: 29

Compression:

Stored size: 1.45 KB

Contents

<% if @auto_pagination -%>
  <% if @page.items.present? -%>
    ActiveScaffold.append('<%= active_scaffold_tbody_id %>', '<%= escape_javascript(render(:partial => 'list_record', :collection => @page.items, :locals => {:hidden => false, :columns => list_columns, :action_links => active_scaffold_config.action_links.member})) %>');

    <% if @page.pager.infinite? || @page.number < @page.pager.number_of_pages -%>
      ActiveScaffold.auto_load_page('<%= url_for main_path_to_return %>', {auto_pagination: true, page: <%= @page.number + 1 %>});
    <% else %>
      ActiveScaffold.hide('<%= loading_indicator_id(action: :pagination) %>');
    <% end # @page.pager.infinite?... %>
  <% else %>
    ActiveScaffold.hide('<%= loading_indicator_id(action: :pagination) %>');
  <% end # @page.items.present? %>

  <% elsif active_scaffold_config.list.refresh_with_header -%>
    ActiveScaffold.replace('<%= active_scaffold_id %>', '<%= escape_javascript(render('list_with_header')) %>');
  <% else -%>
    ActiveScaffold.replace_html('<%= active_scaffold_content_id %>', '<%= escape_javascript(render('list')) %>');
<% end # @auto_pagination -%>

<% if ActiveScaffold.js_framework == :jquery && !@auto_pagination && !@popstate && !embedded? && !local_assigns[:no_history] -%>
  if (!jQuery('#<%= active_scaffold_id %>').is('.active-scaffold .active-scaffold')) {
    ActiveScaffold.add_to_history(<%=raw request.original_url.to_json %>, <%=raw history_state.to_json %>);
  }
<% end -%>

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
active_scaffold-3.7.8 app/views/active_scaffold_overrides/_refresh_list.js.erb
active_scaffold-3.7.7 app/views/active_scaffold_overrides/_refresh_list.js.erb
active_scaffold-3.7.6 app/views/active_scaffold_overrides/_refresh_list.js.erb
active_scaffold-3.7.5 app/views/active_scaffold_overrides/_refresh_list.js.erb
active_scaffold-3.7.2 app/views/active_scaffold_overrides/_refresh_list.js.erb
active_scaffold-3.7.1 app/views/active_scaffold_overrides/_refresh_list.js.erb
active_scaffold-3.7.0 app/views/active_scaffold_overrides/_refresh_list.js.erb
active_scaffold-3.6.20 app/views/active_scaffold_overrides/_refresh_list.js.erb
active_scaffold-3.6.19 app/views/active_scaffold_overrides/_refresh_list.js.erb
active_scaffold-3.6.17 app/views/active_scaffold_overrides/_refresh_list.js.erb
active_scaffold-3.6.15 app/views/active_scaffold_overrides/_refresh_list.js.erb
active_scaffold-3.6.14 app/views/active_scaffold_overrides/_refresh_list.js.erb
active_scaffold-3.6.13 app/views/active_scaffold_overrides/_refresh_list.js.erb
active_scaffold-3.6.12 app/views/active_scaffold_overrides/_refresh_list.js.erb
active_scaffold-3.6.11.1 app/views/active_scaffold_overrides/_refresh_list.js.erb
active_scaffold-3.6.11 app/views/active_scaffold_overrides/_refresh_list.js.erb
active_scaffold-3.6.10 app/views/active_scaffold_overrides/_refresh_list.js.erb
active_scaffold-3.6.9 app/views/active_scaffold_overrides/_refresh_list.js.erb
active_scaffold-3.6.8 app/views/active_scaffold_overrides/_refresh_list.js.erb
active_scaffold-3.6.6 app/views/active_scaffold_overrides/_refresh_list.js.erb