Sha256: 441a9e10deb3ab7a3caac729cbaea911ecbf62bfc1992aaea3d3cc8ca742a0ac

Contents?: true

Size: 542 Bytes

Versions: 1

Compression:

Stored size: 542 Bytes

Contents

$(document).ready ->
  $(document.body).on 'click', '.page_module_collection_show_link', (event) ->
    $this = $(this)
    $this.find('.ajax_spinner').show()
    
    $.ajax(url: $this.attr('href'), type: 'GET', dataType: 'html').done((data) =>
      $this.find('.ajax_spinner').hide()
      $($this.data('replace')).html(data)
      new window.HomePage.Shared.SortableList('#page_module_collection_modules')
    ).fail((data) =>
      $this.find('.ajax_spinner').hide()
      alert 'Failed to load page!'
    )
    event.preventDefault()  

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
home_page-0.0.6 app/assets/javascripts/home_page/page_module_collections/index.js.coffee