【发布时间】:2011-03-30 09:37:11
【问题描述】:
在下面的代码中,当一个项目从列表sortable1 移动到sortable2 时,更新函数会被调用两次。虽然我只需要调用一次该函数:
$("#sortable1 tbody, #sortable2 tbody").sortable({
connectWith: '.connectedSortable tbody',
helper: fixHelper,
handle : '.handle',
update : function () {
var order = $('#sortable1 tbody').sortable('serialize');
}
}).disableSelection();
【问题讨论】: