If you return false from the stopor method beforeStop, it will cancel the sort.
.ui-sortable-placeholder - , beforeStop, , #list3 :
myElement.sortable({
beforeStop: function (event, ui) {
if ($("#list3").find('.ui-sortable-placeholder').length) {
return false;
}
}
});
:
, ( connectWith), , find():
$("#list1").sortable({
connectWith: '#list2, #list3'
});
$("#list2").sortable({
connectWith: '#list1, #list3'
});
$("#list3").sortable({
connectWith: '#list1, #list3',
stop: function() { return false; }
});
, , , .