Ignore:
Timestamp:
Oct 28, 2011, 3:25:54 PM (12 years ago)
Author:
patdenice
Message:

feature:2487
Update jQuery to 1.6.4 and jQuery UI to 1.8.16

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/default/js/ui/jquery.ui.sortable.js

    r9559 r12525  
    11/*
    2  * jQuery UI Sortable 1.8.10
     2 * jQuery UI Sortable 1.8.16
    33 *
    44 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
     
    5050                this.refresh();
    5151
    52                 //Let's determine if the items are floating
    53                 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;
    5454
    5555                //Let's determine the parent's offset
     
    615615                for (var i = this.items.length - 1; i >= 0; i--){
    616616                        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;
    617621
    618622                        var t = this.options.toleranceElement ? $(this.options.toleranceElement, item.item) : item.item;
     
    981985                // We first have to update the dom position of the actual currentItem
    982986                // 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);
    984988                this._noFinalSort = null;
    985989
     
    10681072
    10691073$.extend($.ui.sortable, {
    1070         version: "1.8.10"
     1074        version: "1.8.16"
    10711075});
    10721076
Note: See TracChangeset for help on using the changeset viewer.