Changeset 1336

Show
Ignore:
Timestamp:
12/30/08 08:34:23 (15 months ago)
Author:
paul.bakaus
Message:

draggable: made connectToSortable work fine with helper: 'original' (by removing top/left properties at sort end)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ui/ui.draggable.js

    r1325 r1336  
    429429 
    430430                                this.instance.options.helper = this.instance.options._helper; 
     431                                 
     432                                if(inst.options.helper == 'original') { 
     433                                        this.instance.currentItem.css({ top: 'auto', left: 'auto' }); 
     434                                } 
     435 
    431436                        } else { 
    432437                                this.instance.cancelHelperRemoval = false; //Remove the helper in the sortable instance