Sha256: 22888218d7f5fd7a29ec94483f46b8a8f1273d14d2210913947c888348e1dfe1

Contents?: true

Size: 328 Bytes

Versions: 1

Compression:

Stored size: 328 Bytes

Contents

def pageless(total_pages, url=nil, container=nil)
  opts = {
      :totalPages => total_pages,
      :url        => url,
      :loaderMsg  => 'Loading more pages...',
      :loaderImage => image_path('load.gif')
  }

  container && opts[:container] ||= container

  javascript_tag("$('#results').pageless(#{opts.to_json});")
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rpageless-0.0.2 app/helpers/pageless_helper.rb