请在此处查看此链接:http://jsfiddle.net/CK9uL/129/
我正试图将项目从右边拖到左边的行程中。当我在一个时间段(例如下午)添加3个或更多项目时,我无法对项目进行排序。我试过使用.sortable('refresh')
,但没有成功。
您需要禁用拖放后的"可拖动":
// set up droppable
item.droppable({
drop: function(e, ui) {
ui.draggable.appendTo($(this).find('ul')).draggable('disable');
}
});
它被保存为小提琴的修订版131:-)