Sha256: 140f0bbd1f12ffee225bc1b4f9dc67aa987fa5d29d6eb84f4b84b55bd1cefa69

Contents?: true

Size: 263 Bytes

Versions: 34

Compression:

Stored size: 263 Bytes

Contents

applySortable = ->
  $(".asset-box-input .attachments").sortable
    items: '> .attachment'
    placeholder: 'col-sm-3'
    cursor: 'move'

$ -> applySortable()
$(document).on 'page:change', -> applySortable()
$(document).on 'turbolinks:load', -> applySortable()

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
effective_assets-1.9.5 app/assets/javascripts/effective_assets/asset_box_sorting.js.coffee
effective_assets-1.9.4 app/assets/javascripts/effective_assets/asset_box_sorting.js.coffee
effective_assets-1.9.3 app/assets/javascripts/effective_assets/asset_box_sorting.js.coffee
effective_assets-1.9.2 app/assets/javascripts/effective_assets/asset_box_sorting.js.coffee
effective_assets-1.9.1 app/assets/javascripts/effective_assets/asset_box_sorting.js.coffee
effective_assets-1.9.0 app/assets/javascripts/effective_assets/asset_box_sorting.js.coffee
effective_assets-1.8.0 app/assets/javascripts/effective_assets/asset_box_sorting.js.coffee
effective_assets-1.7.7 app/assets/javascripts/effective_assets/asset_box_sorting.js.coffee
effective_assets-1.7.6 app/assets/javascripts/effective_assets/asset_box_sorting.js.coffee
effective_assets-1.7.5 app/assets/javascripts/effective_assets/asset_box_sorting.js.coffee
effective_assets-1.7.4 app/assets/javascripts/effective_assets/asset_box_sorting.js.coffee
effective_assets-1.7.3 app/assets/javascripts/effective_assets/asset_box_sorting.js.coffee
effective_assets-1.7.2 app/assets/javascripts/effective_assets/asset_box_sorting.js.coffee
effective_assets-1.7.1 app/assets/javascripts/effective_assets/asset_box_sorting.js.coffee