Sha256: 1aa774d8906a4de298a6520b39293f52faeb2627639f088adb652973a7025b59

Contents?: true

Size: 359 Bytes

Versions: 2

Compression:

Stored size: 359 Bytes

Contents

module NetherHelper
  def nether(total_pages, url=nil, identifier=nil, container=nil)
    opts = {
      :totalPages => total_pages,
      :url        => escape_javascript(url),
      :loaderMsg  => 'Loading more results'
    }
  
    container && opts[:container] ||= container
  
    javascript_tag("$('#{identifier}').pageless(#{opts.to_json});")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nether-0.0.4 app/helpers/nether_helper.rb
nether-0.0.3 app/helpers/nether_helper.rb