Sha256: 02e7ad60f88f3bbd8a76cb1374d1765f0cfcb8fb7b6f3aac99e54c262017b030

Contents?: true

Size: 351 Bytes

Versions: 26

Compression:

Stored size: 351 Bytes

Contents

jQuery ->
  if jQuery('.pagination').length
    jQuery(window).scroll ->
      url = jQuery('.pagination .next_page').attr('href')
      if url && jQuery(window).scrollTop() > jQuery(document).height() - jQuery(window).height() - 50
        jQuery('.pagination').text('Fetching more events...')
        jQuery.getScript(url)
    jQuery(window).scroll

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
queue_dispatcher-2.5.3 app/assets/javascript/tasks.js.coffee
queue_dispatcher-2.3.0 app/assets/javascript/tasks.js.coffee
queue_dispatcher-2.1.0 app/assets/javascript/tasks.js.coffee
queue_dispatcher-1.5.1 app/assets/javascript/tasks.js.coffee
queue_dispatcher-1.3.1 app/assets/javascript/tasks.js.coffee
queue_dispatcher-1.3.0 app/assets/javascript/tasks.js.coffee
queue_dispatcher-1.2.0 app/assets/javascript/tasks.js.coffee
queue_dispatcher-1.1.19 app/assets/javascript/tasks.js.coffee
queue_dispatcher-1.1.18 app/assets/javascript/tasks.js.coffee
queue_dispatcher-1.1.17 app/assets/javascript/tasks.js.coffee
queue_dispatcher-1.1.16 app/assets/javascript/tasks.js.coffee
queue_dispatcher-1.1.15 app/assets/javascript/tasks.js.coffee
queue_dispatcher-1.1.14 app/assets/javascript/tasks.js.coffee
queue_dispatcher-1.1.12 app/assets/javascript/tasks.js.coffee
queue_dispatcher-1.1.11 app/assets/javascript/tasks.js.coffee
queue_dispatcher-1.1.10 app/assets/javascript/tasks.js.coffee
queue_dispatcher-1.1.9 app/assets/javascript/tasks.js.coffee
queue_dispatcher-1.1.8 app/assets/javascript/tasks.js.coffee
queue_dispatcher-1.1.7 app/assets/javascript/tasks.js.coffee
queue_dispatcher-1.1.6 app/assets/javascript/tasks.js.coffee