Skip to content
Permalink
Browse files

draggable: made connectToSortable work fine with helper: 'original' (…

…by removing top/left properties at sort end)
  • Loading branch information
Paul Bakaus
Paul Bakaus committed Dec 30, 2008
1 parent 1828aab commit 3b09c17bc799cf72af82038d136e7427bf84a043
Showing with 5 additions and 0 deletions.
  1. +5 −0 ui/ui.draggable.js
@@ -428,6 +428,11 @@ $.ui.plugin.add("draggable", "connectToSortable", {
this.instance.element.triggerHandler("sortreceive", [event, $.extend(this.instance._ui(), { sender: inst.element })], this.instance.options["receive"]);

this.instance.options.helper = this.instance.options._helper;

if(inst.options.helper == 'original') {
this.instance.currentItem.css({ top: 'auto', left: 'auto' });
}

} else {
this.instance.cancelHelperRemoval = false; //Remove the helper in the sortable instance
this.instance._propagate("deactivate", event, inst);

0 comments on commit 3b09c17

Please sign in to comment.
You can’t perform that action at this time.