Module: Refinery::PaginationHelper

Defined in:
core/app/helpers/refinery/pagination_helper.rb

Instance Method Summary collapse

Instance Method Details

#pagination_css_classObject

Figures out the CSS classname to apply to your pagination list for animations.


5
6
7
8
9
10
11
# File 'core/app/helpers/refinery/pagination_helper.rb', line 5

def pagination_css_class
  if request.xhr? and params[:from_page].present?
    "frame_#{params[:from_page] > (params[:page] ? params[:page] : "1") ? 'left' : 'right'}"
  else
    "frame_center"
  end
end