summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/softkey.js.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/softkey.js.coffee')
-rw-r--r--app/assets/javascripts/softkey.js.coffee4
1 files changed, 2 insertions, 2 deletions
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