summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/call_route.js.coffee
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-02 11:44:11 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-02 11:44:11 +0100
commitb8c39c59cf7e698d5653cc49fa746506a9c41e24 (patch)
treeb5f782af7817270fc610f7756082608d00685e19 /app/assets/javascripts/call_route.js.coffee
parentaad8a03991fe616f84fa18ed1db81831220f8d64 (diff)
parentba5b2737365592cc511a526a3b14be46c3a75467 (diff)
Merge branch 'sortable' into develop
Diffstat (limited to 'app/assets/javascripts/call_route.js.coffee')
-rw-r--r--app/assets/javascripts/call_route.js.coffee6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/assets/javascripts/call_route.js.coffee b/app/assets/javascripts/call_route.js.coffee
new file mode 100644
index 0000000..f41d65b
--- /dev/null
+++ b/app/assets/javascripts/call_route.js.coffee
@@ -0,0 +1,6 @@
+jQuery ->
+ $("table tbody").sortable
+ axis: 'y'
+ handle: '.handle'
+ update: ->
+ $.post('call_routes/sort', $(this).sortable('serialize')) \ No newline at end of file