Changeset 12525 for trunk/themes/default/js/ui/jquery.ui.sortable.js
- Timestamp:
- Oct 28, 2011, 3:25:54 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/themes/default/js/ui/jquery.ui.sortable.js
r9559 r12525 1 1 /* 2 * jQuery UI Sortable 1.8.1 02 * jQuery UI Sortable 1.8.16 3 3 * 4 4 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) … … 50 50 this.refresh(); 51 51 52 //Let's determine if the items are floating53 this.floating = this.items.length ? (/left|right/).test(this.items[0].item.css('float')) : false;52 //Let's determine if the items are being displayed horizontally 53 this.floating = this.items.length ? o.axis === 'x' || (/left|right/).test(this.items[0].item.css('float')) || (/inline|table-cell/).test(this.items[0].item.css('display')) : false; 54 54 55 55 //Let's determine the parent's offset … … 615 615 for (var i = this.items.length - 1; i >= 0; i--){ 616 616 var item = this.items[i]; 617 618 //We ignore calculating positions of all connected containers when we're not over them 619 if(item.instance != this.currentContainer && this.currentContainer && item.item[0] != this.currentItem[0]) 620 continue; 617 621 618 622 var t = this.options.toleranceElement ? $(this.options.toleranceElement, item.item) : item.item; … … 981 985 // We first have to update the dom position of the actual currentItem 982 986 // Note: don't do it if the current item is already removed (by a user), or it gets reappended (see #4088) 983 if(!this._noFinalSort && this.currentItem [0].parentNode) this.placeholder.before(this.currentItem);987 if(!this._noFinalSort && this.currentItem.parent().length) this.placeholder.before(this.currentItem); 984 988 this._noFinalSort = null; 985 989 … … 1068 1072 1069 1073 $.extend($.ui.sortable, { 1070 version: "1.8.1 0"1074 version: "1.8.16" 1071 1075 }); 1072 1076
Note: See TracChangeset
for help on using the changeset viewer.