Advertisement
Guest User

#9462 possible fix

a guest
Jul 30th, 2013
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. *** jquery.ui.sortable.js 2013-07-15 01:56:50.000000000 +0100
  2. --- jquery.ui.sortable.js-fixed 2013-07-30 16:17:24.000000000 +0100
  3. ***************
  4. *** 890,909 ****
  5. return;
  6. }
  7.  
  8. ! if(this.currentContainer === this.containers[innermostIndex]) {
  9. ! return;
  10. ! }
  11.  
  12. ! itemWithLeastDistance ? this._rearrange(event, itemWithLeastDistance, null, true) : this._rearrange(event, null, this.containers[innermostIndex].element, true);
  13. ! this._trigger("change", event, this._uiHash());
  14. ! this.containers[innermostIndex]._trigger("change", event, this._uiHash(this));
  15. ! this.currentContainer = this.containers[innermostIndex];
  16.  
  17. ! //Update the placeholder
  18. ! this.options.placeholder.update(this.currentContainer, this.placeholder);
  19.  
  20. ! this.containers[innermostIndex]._trigger("over", event, this._uiHash(this));
  21. ! this.containers[innermostIndex].containerCache.over = 1;
  22. }
  23.  
  24.  
  25. --- 890,911 ----
  26. return;
  27. }
  28.  
  29. ! if(this.currentContainer !== this.containers[innermostIndex]) {
  30.  
  31. ! itemWithLeastDistance ? this._rearrange(event, itemWithLeastDistance, null, true) : this._rearrange(event, null, this.containers[innermostIndex].element, true);
  32. ! this._trigger("change", event, this._uiHash());
  33. ! this.containers[innermostIndex]._trigger("change", event, this._uiHash(this));
  34. ! this.currentContainer = this.containers[innermostIndex];
  35.  
  36. ! //Update the placeholder
  37. ! this.options.placeholder.update(this.currentContainer, this.placeholder);
  38.  
  39. ! }
  40. !
  41. ! if (!this.containers[innermostIndex].containerCache.over) {
  42. ! this.containers[innermostIndex]._trigger("over", event, this._uiHash(this));
  43. ! this.containers[innermostIndex].containerCache.over = 1;
  44. ! }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement