Draggable/Sortable: Partial fix for #4009: Fixed ui hash for sortable receive callback when receiving a draggable.

This commit is contained in:
Scott González 2009-02-05 04:12:23 +00:00
parent 0c8eed67f5
commit 2f2342caeb

View File

@ -523,7 +523,9 @@ $.ui.plugin.add("draggable", "connectToSortable", {
inst._trigger("toSortable", event);
inst.dropped = this.instance.element; //draggable revert needs that
this.instance.fromOutside = inst; //Little hack so receive/update callbacks work
//hack so receive/update callbacks work (mostly)
inst.currentItem = inst.element;
this.instance.fromOutside = inst;
}