summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/softkey.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/softkey.js.coffee
parent049b3e62c2ad3e0affac17214baa38afb994b6ba (diff)
Refactoring and bugfixes.
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