]> source.dussan.org Git - jquery-ui.git/commitdiff
draggable: made connectToSortable work fine with helper: 'original' (by removing...
authorPaul Bakaus <paul.bakaus@googlemail.com>
Tue, 30 Dec 2008 16:34:23 +0000 (16:34 +0000)
committerPaul Bakaus <paul.bakaus@googlemail.com>
Tue, 30 Dec 2008 16:34:23 +0000 (16:34 +0000)
ui/ui.draggable.js

index fc25ab3fd164c4e9e8f1f1970927de834fc5eefc..a1854600106e18d2e68df7ac66ea79004331848d 100644 (file)
@@ -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);