В приведенном ниже коде функция обновления вызывается дважды, когда элемент перемещается из списка sortable1
в sortable2
. Хотя мне нужно вызвать эту функцию только один раз:
$("#sortable1 tbody, #sortable2 tbody").sortable({
connectWith: '.connectedSortable tbody',
helper: fixHelper,
handle : '.handle',
update : function () {
var order = $('#sortable1 tbody').sortable('serialize');
}
}).disableSelection();