From 2f2342caebd14a226b79d9b9d4bf66316ee313a9 Mon Sep 17 00:00:00 2001 From: Scott González Date: Thu, 5 Feb 2009 04:12:23 +0000 Subject: Draggable/Sortable: Partial fix for #4009: Fixed ui hash for sortable receive callback when receiving a draggable. --- ui/ui.draggable.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/ui.draggable.js b/ui/ui.draggable.js index 4592aadb9..524554e23 100644 --- a/ui/ui.draggable.js +++ b/ui/ui.draggable.js @@ -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; } -- cgit v1.2.3