aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.draggable.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2009-02-05 04:12:23 +0000
committerScott González <scott.gonzalez@gmail.com>2009-02-05 04:12:23 +0000
commit2f2342caebd14a226b79d9b9d4bf66316ee313a9 (patch)
treeb2490f742ec204970158b6c50cf4e790eda7b67d /ui/ui.draggable.js
parent0c8eed67f5174633ce6d88f0a98b0f3264c4f082 (diff)
downloadjquery-ui-2f2342caebd14a226b79d9b9d4bf66316ee313a9.tar.gz
jquery-ui-2f2342caebd14a226b79d9b9d4bf66316ee313a9.zip
Draggable/Sortable: Partial fix for #4009: Fixed ui hash for sortable receive callback when receiving a draggable.
Diffstat (limited to 'ui/ui.draggable.js')
-rw-r--r--ui/ui.draggable.js4
1 files changed, 3 insertions, 1 deletions
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;
}