jquery-sortable
jquery-sortable copied to clipboard
Remove items from one list
I have two lists: source and destination.
I'm able to copy items (duplicates possible) by dropping items from source to destination, achieve through this code:
onDragStart: function ($item, container, _super) {
// Duplicate items of the no drop area
$item.clone().insertAfter($item);
_super($item, container);
}
Problem is that I should also be able to delete items from destination just dropping them anywhere out of the list.
Is it possible to do it?
Thank you