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