Skip to content

Instantly share code, notes, and snippets.

@rounders
Created April 7, 2011 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rounders/908707 to your computer and use it in GitHub Desktop.
Save rounders/908707 to your computer and use it in GitHub Desktop.
$(function() {
$( ".sortable" ).sortable({
handle: '.handle',
cursor: 'crosshair',
update: function(){
$.ajax({
type: 'post',
data: $('.sortable').sortable('serialize'),
url: '/projects/<%= @project.id %>/sort_tasks'});
}
});
$( ".sortable" ).disableSelection();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment