summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/route_element.js.coffee
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-02-12 13:07:17 +0000
committerPeter Kozak <spag@golwen.net>2013-02-12 13:07:17 +0000
commit1abd4544ad482079765be838dd6819e9997af9ac (patch)
tree6aa9c0f6e9ba2ee03e509a9858dc43cbafb25db6 /app/assets/javascripts/route_element.js.coffee
parent902447a1baf7e9d8385c269a601361c8c3f2f14b (diff)
parentfb66a5e5a4c5d5f9eac4a5e8de6a286482cb55d5 (diff)
Merge branch 'develop' of github.com:amooma/GS5 into develop
Diffstat (limited to 'app/assets/javascripts/route_element.js.coffee')
-rw-r--r--app/assets/javascripts/route_element.js.coffee6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/assets/javascripts/route_element.js.coffee b/app/assets/javascripts/route_element.js.coffee
new file mode 100644
index 0000000..75dc553
--- /dev/null
+++ b/app/assets/javascripts/route_element.js.coffee
@@ -0,0 +1,6 @@
+jQuery ->
+ $('#route_elements').sortable
+ axis: 'y'
+ handle: '.handle'
+ update: ->
+ $.post($(this).data('update-url'), $(this).sortable('serialize')) \ No newline at end of file