I'm using jquery ui to process a list that you can sort within and then also sort between another list. I'm using the update for the sorting within and that works fine. When I sort between I just want to call the receive function and not the update. Currently, update gets called and then receive gets called. Is there any way to skip the update call when sorting between lists?
<script>
$ = jQuery
$(function() {
$( "#sortable1).sortable({
connectWith: ".connectedSortable",
placeholder: "ui-state-highlight",
update: function(event, ui) {processSortWithin(ui.item.attr("id"), ui.item.index()); },
receive: function(event, ui){
processSortBetween(ui.item.attr("id"), ui.item.index(),ui.sender.attr("id"));
}
}).disableSelection();
});
</script>
Answer from: http://forum.jquery.com/topic/sortables-update-callback-and-connectwith