diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-03-08 12:09:17 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-03-08 12:09:17 +0100 |
commit | 6374c0b3e38dfc74eb1b4a5a1fcc5229eacdcaf2 (patch) | |
tree | 016deaf97e961973069a592537594348df7bb5a7 /app/assets/javascripts | |
parent | db9dbf03d88cfbd68ce99a242730b9e870339539 (diff) |
Added SwitchboardEntry scaffold. switchboard has_many switchboard_entries
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/switchboard_entry.js.coffee | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/assets/javascripts/switchboard_entry.js.coffee b/app/assets/javascripts/switchboard_entry.js.coffee new file mode 100644 index 0000000..d14825e --- /dev/null +++ b/app/assets/javascripts/switchboard_entry.js.coffee @@ -0,0 +1,6 @@ +jQuery -> + $('#switchboard_entries').sortable + axis: 'y' + handle: '.handle' + update: -> + $.post($(this).data('update-url'), $(this).sortable('serialize'))
\ No newline at end of file |