summaryrefslogtreecommitdiff
path: root/app/assets
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-04 14:31:42 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-04 14:31:42 +0100
commitda3ae3cb90697c66beda10fb5d6cb6186055ed3f (patch)
tree7fe3f270694aeeb804021048167731da698ea662 /app/assets
parent5a58c0c41de983a72cdacd06c5be80f120d1e080 (diff)
parent87634e025711be508501cce8c05f23085dad8f9d (diff)
Merge branch 'phone_numbers_sortable' into develop
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/phone_number.js.coffee6
-rw-r--r--app/assets/stylesheets/application.css1
-rw-r--r--app/assets/stylesheets/phone_numbers.css.scss5
3 files changed, 12 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
diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css
index 128a391..3e1cc66 100644
--- a/app/assets/stylesheets/application.css
+++ b/app/assets/stylesheets/application.css
@@ -14,4 +14,5 @@
*= require gemeinschaft-generic
*= require call_routes
*= require softkeys
+ *= require phone_numbers
*/
diff --git a/app/assets/stylesheets/phone_numbers.css.scss b/app/assets/stylesheets/phone_numbers.css.scss
new file mode 100644
index 0000000..141a1f7
--- /dev/null
+++ b/app/assets/stylesheets/phone_numbers.css.scss
@@ -0,0 +1,5 @@
+#phone_numbers .handle {
+ font-size: 12px;
+ color: #777;
+ cursor: move;
+} \ No newline at end of file