Sha256: 15e22e5678bcd916d0fe019edbb6ed07768982e38f1e40873fbc8c09c9ab5615
Contents?: true
Size: 1.12 KB
Versions: 8
Compression:
Stored size: 1.12 KB
Contents
require "ajax_pagination/version" require "ajax_pagination/controller_additions" require "ajax_pagination/helper_additions" require "ajax_pagination/rails" module AjaxPagination # default loading image to use mattr_accessor :loading_image @@loading_image = "ajax-loader.gif" # whether javascript warnings are on, these present themselves as alerts mattr_accessor :warnings @@warnings = nil # if nil, uses default, which is true only in development mode # intercepts any AJAX Pagination 302 redirects, and turns them into Status 200 OK, with a Location: header. AJAX code can manually perform the redirection. # can be disabled in the initializer mattr_accessor :redirect_after_filter @@redirect_after_filter = true # when changing pages, AJAX Pagination scrolls to ensure the page sees the top of the changing section, plus an additional margin in pixels # to turn this feature off, set scroll_margin to '-Infinity' mattr_accessor :scroll_margin @@scroll_margin = 20 # run rails generate ajax_pagination:install to create a default initializer with configuration values def self.config yield self end end
Version data entries
8 entries across 8 versions & 1 rubygems