Sha256: d8fb2b654f69749e6565bdb6097822df3856a8ff9ef0b3b5a4a4b8da8f4713b3
Contents?: true
Size: 1.4 KB
Versions: 5
Compression:
Stored size: 1.4 KB
Contents
<% pagination_params = params.merge(:controller => @scaffold_controller, :action => 'update_'+@prefix+'table') %> <% indicator_params = pagination_params.merge(:action => 'pagination') %> <% previous_url = url_for(pagination_params.merge(:page => paginator.current.previous)) %> <% next_url = url_for(pagination_params.merge(:page => paginator.current.next)) %> <% current_url = url_for(pagination_params.merge(:page => paginator.current)) %> <script> addAjaxTableUrlToHistory('<%= current_url %>') </script> <%= loading_indicator_tag indicator_params %> <%= link_to_remote('Previous', { :url => pagination_params.merge(:page => paginator.current.previous), :before => "addAjaxTableUrlToHistory('#{previous_url}')", :loading => "Element.show('#{loading_indicator_id(indicator_params)}');", :update => scaffold_content_id(pagination_params) }, { :href => previous_url, :class => "previous"}) if @paginator.current.previous %> <%= pagination_ajax_links @paginator, pagination_params %> <%= link_to_remote('Next', { :url => pagination_params.merge(:page => paginator.current.next), :before => "addAjaxTableUrlToHistory('#{next_url}')", :loading => "Element.show('#{loading_indicator_id(indicator_params)}');", :update => scaffold_content_id(pagination_params) }, { :href => next_url, :class => "next"}) if @paginator.current.next %>
Version data entries
5 entries across 5 versions & 1 rubygems