views:

46

answers:

0

Hi,

In the code below the update function gets called twice when an item is moved from list sortable1 to sortable2 .. though i need to call that function only once.

$("#sortable1 tbody, #sortable2 tbody").sortable({ connectWith: '.connectedSortable tbody', helper: fixHelper, handle : '.handle', update : function () { var order = $('#sortable1 tbody').sortable('serialize'); }

}).disableSelection();