aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.draggable.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/ui.draggable.js')
-rw-r--r--ui/ui.draggable.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/ui/ui.draggable.js b/ui/ui.draggable.js
index a1d17aef4..b70435e77 100644
--- a/ui/ui.draggable.js
+++ b/ui/ui.draggable.js
@@ -466,10 +466,7 @@ $.ui.plugin.add("draggable", "connectToSortable", {
//Trigger the stop of the sortable
this.instance._mouseStop(event);
-
- //Also propagate receive event, since the sortable is actually receiving a element
- this.instance.element.triggerHandler("sortreceive", [event, $.extend(this.instance._uiHash(), { sender: inst.element })], this.instance.options["receive"]);
-
+
this.instance.options.helper = this.instance.options._helper;
//If the helper has been the original item, restore properties in the sortable
@@ -523,7 +520,7 @@ $.ui.plugin.add("draggable", "connectToSortable", {
inst._trigger("toSortable", event);
inst.dropped = this.instance.element; //draggable revert needs that
- this.instance.fromOutside = true; //Little hack so receive/update callbacks work
+ this.instance.fromOutside = inst; //Little hack so receive/update callbacks work
}