Skip to content

Instantly share code, notes, and snippets.

@zeroeth
Created March 30, 2011 14:40
Show Gist options
  • Select an option

  • Save zeroeth/894519 to your computer and use it in GitHub Desktop.

Select an option

Save zeroeth/894519 to your computer and use it in GitHub Desktop.
$(document).ready(function(){
$('#books').sortable({
update: function(){
$.ajax({
type: 'post',
data: $('#books').sortable('serialize'),
dataType: 'script',
complete: function(request){
$('#books').effect('highlight');
},
url: '/books/sort'
});
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment