Bug Tracker

Ticket #2922: ui.draggable.js.patch

File ui.draggable.js.patch, 0.7 kB (added by ivan, 8 months ago)
  • ui/ui.draggable.js

    a b  
    210210               stop: function(e) { 
    211211                
    212212                       //If we are using droppables, inform the manager about the drop 
     213 
    213214                       if ($.ui.ddmanager && !this.options.dropBehaviour) 
    214                                $.ui.ddmanager.drop(this, e); 
     215                               var dropped = $.ui.ddmanager.drop(this, e); 
    215216                                
    216                        if(this.options.revert) this.revert(); 
     217                       if(this.options.revert || (this.options.revertInvalid && !dropped)) this.revert(); 
    217218                       else { 
    218219                               this.propagate("stop", e); 
    219220                               this.clear();