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.coffee6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/assets/javascripts/softkey.js.coffee b/app/assets/javascripts/softkey.js.coffee
new file mode 100644
index 0000000..19103f0
--- /dev/null
+++ b/app/assets/javascripts/softkey.js.coffee
@@ -0,0 +1,6 @@
+jQuery ->
+ $("table tbody").sortable
+ axis: 'y'
+ handle: '.handle'
+ update: ->
+ $.post('/softkeys/sort', $(this).sortable('serialize')) \ No newline at end of file