summaryrefslogtreecommitdiff
path: root/app/assets/javascripts
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-12 13:27:08 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-12 13:27:08 +0100
commit421249fc702fa76fe68530a1ab8bdde910814c6f (patch)
treeaa6ed467ba56ea74b0061af4d06cfb9b853da489 /app/assets/javascripts
parentaa5a2b806d117ffde9888e282c7100066156d94b (diff)
parentf8f35f666613eff24d3988bda1a22cc40ef2ab30 (diff)
Merge branch 'call_routes' into develop
Diffstat (limited to 'app/assets/javascripts')
-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