r1336 - trunk/ui

r1336 - trunk/ui


Author: paul.bakaus
Date: Tue Dec 30 08:34:23 2008
New Revision: 1336
Modified:
trunk/ui/ui.draggable.js
Log:
draggable: made connectToSortable work fine with helper: 'original' (by
removing top/left properties at sort end)
Modified: trunk/ui/ui.draggable.js
==============================================================================
--- trunk/ui/ui.draggable.js    (original)
+++ trunk/ui/ui.draggable.js    Tue Dec 30 08:34:23 2008
@@ -428,6 +428,11 @@
                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);