/ Published in: jQuery
Sortable, doesn't support natively drag-to-remove action, so I found this little hack on stackoverflow.
Expand |
Embed | Plain Text
$(ELEMENT).sortable({ receive: function(event, ui) { sortableIn = 1; }, over: function(e, ui) { sortableIn = 1; }, out: function(e, ui) { sortableIn = 0; }, beforeStop: function(e, ui) { if (sortableIn == 0) { ui.item.remove(); } } });
You need to login to post a comment.
