summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/call_route.js.coffee
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-04 13:51:15 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-04 13:51:15 +0100
commit636be20a183fac10637fea700f55f89bc371577b (patch)
tree0ccfad9b5ddbaf761dd1121962d2dd5977c4ba93 /app/assets/javascripts/call_route.js.coffee
parent049b3e62c2ad3e0affac17214baa38afb994b6ba (diff)
Refactoring and bugfixes.
Diffstat (limited to 'app/assets/javascripts/call_route.js.coffee')
-rw-r--r--app/assets/javascripts/call_route.js.coffee4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/call_route.js.coffee b/app/assets/javascripts/call_route.js.coffee
index f41d65b..91d62ca 100644
--- a/app/assets/javascripts/call_route.js.coffee
+++ b/app/assets/javascripts/call_route.js.coffee
@@ -1,6 +1,6 @@
jQuery ->
- $("table tbody").sortable
+ $('#call_routes').sortable
axis: 'y'
handle: '.handle'
update: ->
- $.post('call_routes/sort', $(this).sortable('serialize')) \ No newline at end of file
+ $.post($(this).data('update-url'), $(this).sortable('serialize')) \ No newline at end of file