Skip to content

Instantly share code, notes, and snippets.

@fleeting
Created July 16, 2010 19:17
Show Gist options
  • Save fleeting/478791 to your computer and use it in GitHub Desktop.
Save fleeting/478791 to your computer and use it in GitHub Desktop.
drop: function(event, ui) {
$("#photos").sortable('cancel');
$(this).addClass('ui-state-highlight').html($("img", ui.draggable).clone());
$("input[name=default_photo]").attr("value", $(ui.draggable).attr("id"));
}
//....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment