summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/route_element.js.coffee
blob: 75dc5537d3a6a1020d4030881472f3dfda85cb05 (plain)
1
2
3
4
5
6
jQuery ->
  $('#route_elements').sortable
    axis: 'y'
    handle: '.handle'
    update: ->
      $.post($(this).data('update-url'), $(this).sortable('serialize'))