summaryrefslogtreecommitdiff
path: root/app/assets/javascripts
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-04 14:23:26 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-04 14:23:26 +0100
commit3dead8f9bd964c7330f193cbec82afe44db4149d (patch)
tree23ea3b0c00caaa4a00c3a82483a9d385c9f25a04 /app/assets/javascripts
parent5a58c0c41de983a72cdacd06c5be80f120d1e080 (diff)
intermediate step
Diffstat (limited to 'app/assets/javascripts')
-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