summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/phone_number.js.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/phone_number.js.coffee')
-rw-r--r--app/assets/javascripts/phone_number.js.coffee6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/assets/javascripts/phone_number.js.coffee b/app/assets/javascripts/phone_number.js.coffee
new file mode 100644
index 0000000..ee983ee
--- /dev/null
+++ b/app/assets/javascripts/phone_number.js.coffee
@@ -0,0 +1,6 @@
+jQuery ->
+ $('#phone_numbers').sortable
+ axis: 'y'
+ handle: '.handle'
+ update: ->
+ $.post($(this).data('update-url'), $(this).sortable('serialize')) \ No newline at end of file