summaryrefslogtreecommitdiff
path: root/app/assets
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
parent049b3e62c2ad3e0affac17214baa38afb994b6ba (diff)
Refactoring and bugfixes.
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/call_route.js.coffee4
-rw-r--r--app/assets/javascripts/softkey.js.coffee4
2 files changed, 4 insertions, 4 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
diff --git a/app/assets/javascripts/softkey.js.coffee b/app/assets/javascripts/softkey.js.coffee
index 19103f0..a8d2d0c 100644
--- a/app/assets/javascripts/softkey.js.coffee
+++ b/app/assets/javascripts/softkey.js.coffee
@@ -1,6 +1,6 @@
jQuery ->
- $("table tbody").sortable
+ $('#softkeys').sortable
axis: 'y'
handle: '.handle'
update: ->
- $.post('/softkeys/sort', $(this).sortable('serialize')) \ No newline at end of file
+ $.post($(this).data('update-url'), $(this).sortable('serialize')) \ No newline at end of file