Sha256: d295394a9f4604d3e69669ed0fbdae3e291a2321d78714d3f54efcf40d65ea27

Contents?: true

Size: 395 Bytes

Versions: 45

Compression:

Stored size: 395 Bytes

Contents

$ ->
  $('#pagination-size').on 'change', (e) ->
    queryParameters = {}
    queryString = location.search.substring(1)
    re = /([^&=]+)=([^&]*)/g
    m = undefined

    while m = re.exec(queryString)
      queryParameters[decodeURIComponent(m[1])] = decodeURIComponent(m[2])

    per_page = $(@).val()
    queryParameters['per_page'] = per_page
    location.search = $.param(queryParameters)

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
itsf_backend-5.0.0.pre app/assets/javascripts/itsf/backend/application/pagination-size.coffee
itsf_backend-4.2.3 app/assets/javascripts/itsf/backend/application/pagination-size.coffee
itsf_backend-4.2.2 app/assets/javascripts/itsf/backend/application/pagination-size.coffee
itsf_backend-4.2.1 app/assets/javascripts/itsf/backend/application/pagination-size.coffee
itsf_backend-4.2.0 app/assets/javascripts/itsf/backend/application/pagination-size.coffee
itsf_backend-4.0.1 app/assets/javascripts/itsf/backend/application/pagination-size.coffee
itsf_backend-4.0.0 app/assets/javascripts/itsf/backend/application/pagination-size.coffee
itsf_backend-3.1.1 app/assets/javascripts/itsf/backend/application/pagination-size.coffee
itsf_backend-3.1.0 app/assets/javascripts/itsf/backend/application/pagination-size.coffee
itsf_backend-3.0.7 app/assets/javascripts/itsf/backend/application/pagination-size.coffee
itsf_backend-3.0.6 app/assets/javascripts/itsf/backend/application/pagination-size.coffee
itsf_backend-3.0.5 app/assets/javascripts/itsf/backend/application/pagination-size.coffee
itsf_backend-3.0.4 app/assets/javascripts/itsf/backend/application/pagination-size.coffee
itsf_backend-3.0.3 app/assets/javascripts/itsf/backend/application/pagination-size.coffee
itsf_backend-3.0.2 app/assets/javascripts/itsf/backend/application/pagination-size.coffee
itsf_backend-3.0.1 app/assets/javascripts/itsf/backend/application/pagination-size.coffee
itsf_backend-3.0.0 app/assets/javascripts/itsf/backend/application/pagination-size.coffee
itsf_backend-2.2.1 app/assets/javascripts/itsf/backend/application/pagination-size.coffee
itsf_backend-2.2.0 app/assets/javascripts/itsf/backend/application/pagination-size.coffee
itsf_backend-2.1.0 app/assets/javascripts/itsf/backend/application/pagination-size.coffee