Permalink
Browse files

and now I save order w.in the column too

  • Loading branch information...
1 parent d8afcb5 commit 45d6e6e4b8c398cede68181c0b453893e71698cd @lauramoore committed Apr 9, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 app/views/board/show.html.erb
@@ -51,12 +51,11 @@ a<%= link_to 'New Story', new_story_path %>
//alert('jquery enabled')
$(".sortcol").sortable({
connectWith: ".sortcol",
- receive: function(event, ui) {
- //alert("dropped " + ui.item.attr('id') + "in col" + ui.item.parent().attr('id'));
+ stop: function(event, ui) {
$.ajax({
url: "<%= drop_url() %>",
type: 'PUT',
- data: $.param({id : ui.item.attr('id'), state : ui.item.parent().attr('id')}),
+ data: $.param({id : ui.item.attr('id'), state : ui.item.parent().attr('id'), column_ord : ui.offset.top}),
success: function(d) { ui.item.effect("pulsate", {} , 500 ) }
})//end get
} //end receive function

0 comments on commit 45d6e6e

Please sign in to comment.