]> source.dussan.org Git - jquery-ui.git/commitdiff
Draggable/Sortable: Partial fix for #4009: Fixed ui hash for sortable receive callbac...
authorScott González <scott.gonzalez@gmail.com>
Thu, 5 Feb 2009 04:12:23 +0000 (04:12 +0000)
committerScott González <scott.gonzalez@gmail.com>
Thu, 5 Feb 2009 04:12:23 +0000 (04:12 +0000)
ui/ui.draggable.js

index 4592aadb9a6b2cbc896c59723c536560cc1803fc..524554e233e367428fcbbfe83852d37665d58673 100644 (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;
 
                                }