Draggable + sortable with "clone" helper, how to modify the dragged item on "receive" event.
Hi,
I'm using draggable + sortable combination as following:
- $(".sortable").sortable({
- revert: true,
- receive: function (data, ui)
- {
- //$(ui.item).html('new');
- }
- });
- $('.page-item').draggable(
- {
- connectToSortable: '.sortable',
- helper: 'clone',
- revert: 'invalid',
- });
The problem is, that [i]ui.item[/i] in "receive" points to the "original" item, while I need an access to the one which has been just dragged.