Make WordPress Core

Changeset 52665


Ignore:
Timestamp:
02/03/2022 12:02:28 AM (3 years ago)
Author:
peterwilsoncc
Message:

External libraries: Update jQuery UI to 1.13.1

Some regressions happened alongside the release of jQuery UI 1.13.0, this brings the fixes from 1.13.1 downstream to WordPress, notably relating to Widget, Autocomplete, Sortable, and Tooltip modules.

See the changelog between version 1.13.0 and 1.13.1 at https://github.com/jquery/jquery-ui/compare/1.13.0...1.13.1

Props blogaid, linux4me2, mgol, Clorith.
Merges [52648] to the 5.9 branch.
Fixes #54902.

Location:
branches/5.9
Files:
39 edited

Legend:

Unmodified
Added
Removed
  • branches/5.9

  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/accordion.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Accordion 1.13.0
     2 * jQuery UI Accordion 1.13.1
    33 * http://jqueryui.com
    44 *
     
    3838
    3939return $.widget( "ui.accordion", {
    40     version: "1.13.0",
     40    version: "1.13.1",
    4141    options: {
    4242        active: 0,
     
    205205
    206206        switch ( event.keyCode ) {
    207         case keyCode.RIGHT:
    208         case keyCode.DOWN:
    209             toFocus = this.headers[ ( currentIndex + 1 ) % length ];
    210             break;
    211         case keyCode.LEFT:
    212         case keyCode.UP:
    213             toFocus = this.headers[ ( currentIndex - 1 + length ) % length ];
    214             break;
    215         case keyCode.SPACE:
    216         case keyCode.ENTER:
    217             this._eventHandler( event );
    218             break;
    219         case keyCode.HOME:
    220             toFocus = this.headers[ 0 ];
    221             break;
    222         case keyCode.END:
    223             toFocus = this.headers[ length - 1 ];
    224             break;
     207            case keyCode.RIGHT:
     208            case keyCode.DOWN:
     209                toFocus = this.headers[ ( currentIndex + 1 ) % length ];
     210                break;
     211            case keyCode.LEFT:
     212            case keyCode.UP:
     213                toFocus = this.headers[ ( currentIndex - 1 + length ) % length ];
     214                break;
     215            case keyCode.SPACE:
     216            case keyCode.ENTER:
     217                this._eventHandler( event );
     218                break;
     219            case keyCode.HOME:
     220                toFocus = this.headers[ 0 ];
     221                break;
     222            case keyCode.END:
     223                toFocus = this.headers[ length - 1 ];
     224                break;
    225225        }
    226226
     
    245245        // Was collapsed or no panel
    246246        if ( ( options.active === false && options.collapsible === true ) ||
    247                 !this.headers.length ) {
     247            !this.headers.length ) {
    248248            options.active = false;
    249249            this.active = $();
    250250
    251         // active false only when collapsible is true
     251            // active false only when collapsible is true
    252252        } else if ( options.active === false ) {
    253253            this._activate( 0 );
    254254
    255         // was active, but active panel is gone
     255            // was active, but active panel is gone
    256256        } else if ( this.active.length && !$.contains( this.element[ 0 ], this.active[ 0 ] ) ) {
    257257
     
    261261                this.active = $();
    262262
    263             // activate previous panel
     263                // activate previous panel
    264264            } else {
    265265                this._activate( Math.max( 0, options.active - 1 ) );
    266266            }
    267267
    268         // was active, active panel still exists
     268            // was active, active panel still exists
    269269        } else {
    270270
     
    323323            } )
    324324            .next()
    325                 .attr( "role", "tabpanel" );
     325            .attr( "role", "tabpanel" );
    326326
    327327        this.headers
    328328            .not( this.active )
    329                 .attr( {
    330                     "aria-selected": "false",
    331                     "aria-expanded": "false",
    332                     tabIndex: -1
    333                 } )
    334                 .next()
    335                     .attr( {
    336                         "aria-hidden": "true"
    337                     } )
    338                     .hide();
     329            .attr( {
     330                "aria-selected": "false",
     331                "aria-expanded": "false",
     332                tabIndex: -1
     333            } )
     334            .next()
     335            .attr( {
     336                "aria-hidden": "true"
     337            } )
     338            .hide();
    339339
    340340        // Make sure at least one header is in the tab order
     
    348348            } )
    349349                .next()
    350                     .attr( {
    351                         "aria-hidden": "false"
    352                     } );
     350                .attr( {
     351                    "aria-hidden": "false"
     352                } );
    353353        }
    354354
     
    455455        if (
    456456
    457                 // click on active header, but not collapsible
    458                 ( clickedIsActive && !options.collapsible ) ||
    459 
    460                 // allow canceling activation
    461                 ( this._trigger( "beforeActivate", event, eventData ) === false ) ) {
     457            // click on active header, but not collapsible
     458            ( clickedIsActive && !options.collapsible ) ||
     459
     460            // allow canceling activation
     461            ( this._trigger( "beforeActivate", event, eventData ) === false ) ) {
    462462            return;
    463463        }
     
    535535            .attr( "aria-hidden", "false" )
    536536            .prev()
    537                 .attr( {
    538                     "aria-selected": "true",
    539                     "aria-expanded": "true",
    540                     tabIndex: 0
    541                 } );
     537            .attr( {
     538                "aria-selected": "true",
     539                "aria-expanded": "true",
     540                tabIndex: 0
     541            } );
    542542    },
    543543
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/autocomplete.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Autocomplete 1.13.0
     2 * jQuery UI Autocomplete 1.13.1
    33 * http://jqueryui.com
    44 *
     
    3737
    3838$.widget( "ui.autocomplete", {
    39     version: "1.13.0",
     39    version: "1.13.1",
    4040    defaultElement: "<input>",
    4141    options: {
     
    6363    requestIndex: 0,
    6464    pending: 0,
     65    liveRegionTimer: null,
    6566
    6667    _create: function() {
     
    104105                var keyCode = $.ui.keyCode;
    105106                switch ( event.keyCode ) {
    106                 case keyCode.PAGE_UP:
    107                     suppressKeyPress = true;
    108                     this._move( "previousPage", event );
    109                     break;
    110                 case keyCode.PAGE_DOWN:
    111                     suppressKeyPress = true;
    112                     this._move( "nextPage", event );
    113                     break;
    114                 case keyCode.UP:
    115                     suppressKeyPress = true;
    116                     this._keyEvent( "previous", event );
    117                     break;
    118                 case keyCode.DOWN:
    119                     suppressKeyPress = true;
    120                     this._keyEvent( "next", event );
    121                     break;
    122                 case keyCode.ENTER:
    123 
    124                     // when menu is open and has focus
    125                     if ( this.menu.active ) {
    126 
    127                         // #6055 - Opera still allows the keypress to occur
    128                         // which causes forms to submit
     107                    case keyCode.PAGE_UP:
    129108                        suppressKeyPress = true;
    130                         event.preventDefault();
    131                         this.menu.select( event );
    132                     }
    133                     break;
    134                 case keyCode.TAB:
    135                     if ( this.menu.active ) {
    136                         this.menu.select( event );
    137                     }
    138                     break;
    139                 case keyCode.ESCAPE:
    140                     if ( this.menu.element.is( ":visible" ) ) {
    141                         if ( !this.isMultiLine ) {
    142                             this._value( this.term );
     109                        this._move( "previousPage", event );
     110                        break;
     111                    case keyCode.PAGE_DOWN:
     112                        suppressKeyPress = true;
     113                        this._move( "nextPage", event );
     114                        break;
     115                    case keyCode.UP:
     116                        suppressKeyPress = true;
     117                        this._keyEvent( "previous", event );
     118                        break;
     119                    case keyCode.DOWN:
     120                        suppressKeyPress = true;
     121                        this._keyEvent( "next", event );
     122                        break;
     123                    case keyCode.ENTER:
     124
     125                        // when menu is open and has focus
     126                        if ( this.menu.active ) {
     127
     128                            // #6055 - Opera still allows the keypress to occur
     129                            // which causes forms to submit
     130                            suppressKeyPress = true;
     131                            event.preventDefault();
     132                            this.menu.select( event );
    143133                        }
    144                         this.close( event );
    145 
    146                         // Different browsers have different default behavior for escape
    147                         // Single press can mean undo or clear
    148                         // Double press in IE means clear the whole form
    149                         event.preventDefault();
    150                     }
    151                     break;
    152                 default:
    153                     suppressKeyPressRepeat = true;
    154 
    155                     // search timeout should be triggered before the input value is changed
    156                     this._searchTimeout( event );
    157                     break;
     134                        break;
     135                    case keyCode.TAB:
     136                        if ( this.menu.active ) {
     137                            this.menu.select( event );
     138                        }
     139                        break;
     140                    case keyCode.ESCAPE:
     141                        if ( this.menu.element.is( ":visible" ) ) {
     142                            if ( !this.isMultiLine ) {
     143                                this._value( this.term );
     144                            }
     145                            this.close( event );
     146
     147                            // Different browsers have different default behavior for escape
     148                            // Single press can mean undo or clear
     149                            // Double press in IE means clear the whole form
     150                            event.preventDefault();
     151                        }
     152                        break;
     153                    default:
     154                        suppressKeyPressRepeat = true;
     155
     156                        // search timeout should be triggered before the input value is changed
     157                        this._searchTimeout( event );
     158                        break;
    158159                }
    159160            },
     
    173174                var keyCode = $.ui.keyCode;
    174175                switch ( event.keyCode ) {
    175                 case keyCode.PAGE_UP:
    176                     this._move( "previousPage", event );
    177                     break;
    178                 case keyCode.PAGE_DOWN:
    179                     this._move( "nextPage", event );
    180                     break;
    181                 case keyCode.UP:
    182                     this._keyEvent( "previous", event );
    183                     break;
    184                 case keyCode.DOWN:
    185                     this._keyEvent( "next", event );
    186                     break;
     176                    case keyCode.PAGE_UP:
     177                        this._move( "previousPage", event );
     178                        break;
     179                    case keyCode.PAGE_DOWN:
     180                        this._move( "nextPage", event );
     181                        break;
     182                    case keyCode.UP:
     183                        this._keyEvent( "previous", event );
     184                        break;
     185                    case keyCode.DOWN:
     186                        this._keyEvent( "next", event );
     187                        break;
    187188                }
    188189            },
     
    264265                label = ui.item.attr( "aria-label" ) || item.value;
    265266                if ( label && String.prototype.trim.call( label ).length ) {
    266                     this.liveRegion.children().hide();
    267                     $( "<div>" ).text( label ).appendTo( this.liveRegion );
     267                    clearTimeout( this.liveRegionTimer );
     268                    this.liveRegionTimer = this._delay( function() {
     269                        this.liveRegion.html( $( "<div>" ).text( label ) );
     270                    }, 100 );
    268271                }
    269272            },
     
    575578        }
    576579        if ( this.menu.isFirstItem() && /^previous/.test( direction ) ||
    577                 this.menu.isLastItem() && /^next/.test( direction ) ) {
     580            this.menu.isLastItem() && /^next/.test( direction ) ) {
    578581
    579582            if ( !this.isMultiLine ) {
     
    660663            message = this.options.messages.noResults;
    661664        }
    662         this.liveRegion.children().hide();
    663         $( "<div>" ).text( message ).appendTo( this.liveRegion );
     665        clearTimeout( this.liveRegionTimer );
     666        this.liveRegionTimer = this._delay( function() {
     667            this.liveRegion.html( $( "<div>" ).text( message ) );
     668        }, 100 );
    664669    }
    665670} );
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/button.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Button 1.13.0
     2 * jQuery UI Button 1.13.1
    33 * http://jqueryui.com
    44 *
     
    4242
    4343$.widget( "ui.button", {
    44     version: "1.13.0",
     44    version: "1.13.1",
    4545    defaultElement: "<button>",
    4646    options: {
     
    241241        // Make sure we can't end up with a button that has neither text nor icon
    242242        if ( key === "showLabel" ) {
    243                 this._toggleClass( "ui-button-icon-only", null, !value );
    244                 this._updateTooltip();
     243            this._toggleClass( "ui-button-icon-only", null, !value );
     244            this._updateTooltip();
    245245        }
    246246
     
    307307            }
    308308            if ( !this.options.icon && ( this.options.icons.primary ||
    309                     this.options.icons.secondary ) ) {
     309                this.options.icons.secondary ) ) {
    310310                if ( this.options.icons.primary ) {
    311311                    this.options.icon = this.options.icons.primary;
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/checkboxradio.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Checkboxradio 1.13.0
     2 * jQuery UI Checkboxradio 1.13.1
    33 * http://jqueryui.com
    44 *
     
    3737
    3838$.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
    39     version: "1.13.0",
     39    version: "1.13.1",
    4040    options: {
    4141        disabled: null,
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/controlgroup.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Controlgroup 1.13.0
     2 * jQuery UI Controlgroup 1.13.1
    33 * http://jqueryui.com
    44 *
     
    3838
    3939return $.widget( "ui.controlgroup", {
    40     version: "1.13.0",
     40    version: "1.13.1",
    4141    defaultElement: "<div>",
    4242    options: {
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/core.js

    r51897 r52665  
    1 /*! jQuery UI - v1.13.0 - 2021-10-07
     1/*! jQuery UI - v1.13.1 - 2022-01-20
    22* http://jqueryui.com
    33* Includes: data.js, disable-selection.js, escape-selector.js, focusable.js, form-reset-mixin.js, form.js, ie.js, jquery-1-7.js, keycode.js, labels.js, plugin.js, position.js, safe-active-element.js, safe-blur.js, scroll-parent.js, tabbable.js, unique-id.js, version.js, widget.js
     
    2121$.ui = $.ui || {};
    2222
    23 $.ui.version = "1.13.0";
     23$.ui.version = "1.13.1";
    2424
    2525// Source: data.js
    2626/*!
    27  * jQuery UI :data 1.13.0
     27 * jQuery UI :data 1.13.1
    2828 * http://jqueryui.com
    2929 *
     
    5454// Source: disable-selection.js
    5555/*!
    56  * jQuery UI Disable Selection 1.13.0
     56 * jQuery UI Disable Selection 1.13.1
    5757 * http://jqueryui.com
    5858 *
     
    8888// Source: focusable.js
    8989/*!
    90  * jQuery UI Focusable 1.13.0
     90 * jQuery UI Focusable 1.13.1
    9191 * http://jqueryui.com
    9292 *
     
    156156} );
    157157
    158 // Source: form.js
    159158// Support: IE8 Only
    160159// IE8 does not support the form attribute and when it is supplied. It overwrites the form prop
     
    166165// Source: form-reset-mixin.js
    167166/*!
    168  * jQuery UI Form Reset Mixin 1.13.0
     167 * jQuery UI Form Reset Mixin 1.13.1
    169168 * http://jqueryui.com
    170169 *
     
    305304// Source: keycode.js
    306305/*!
    307  * jQuery UI Keycode 1.13.0
     306 * jQuery UI Keycode 1.13.1
    308307 * http://jqueryui.com
    309308 *
     
    339338// Source: labels.js
    340339/*!
    341  * jQuery UI Labels 1.13.0
     340 * jQuery UI Labels 1.13.1
    342341 * http://jqueryui.com
    343342 *
     
    411410
    412411        if ( !allowDisconnected && ( !instance.element[ 0 ].parentNode ||
    413                 instance.element[ 0 ].parentNode.nodeType === 11 ) ) {
     412            instance.element[ 0 ].parentNode.nodeType === 11 ) ) {
    414413            return;
    415414        }
     
    425424// Source: position.js
    426425/*!
    427  * jQuery UI Position 1.13.0
     426 * jQuery UI Position 1.13.1
    428427 * http://jqueryui.com
    429428 *
     
    958957// Source: scroll-parent.js
    959958/*!
    960  * jQuery UI Scroll Parent 1.13.0
     959 * jQuery UI Scroll Parent 1.13.1
    961960 * http://jqueryui.com
    962961 *
     
    991990// Source: tabbable.js
    992991/*!
    993  * jQuery UI Tabbable 1.13.0
     992 * jQuery UI Tabbable 1.13.1
    994993 * http://jqueryui.com
    995994 *
     
    10141013// Source: unique-id.js
    10151014/*!
    1016  * jQuery UI Unique ID 1.13.0
     1015 * jQuery UI Unique ID 1.13.1
    10171016 * http://jqueryui.com
    10181017 *
     
    10511050// Source: widget.js
    10521051/*!
    1053  * jQuery UI Widget 1.13.0
     1052 * jQuery UI Widget 1.13.1
    10541053 * http://jqueryui.com
    10551054 *
     
    11141113
    11151114        // Allow instantiation without "new" keyword
    1116         if ( !this._createWidget ) {
     1115        if ( !this || !this._createWidget ) {
    11171116            return new constructor( options, element );
    11181117        }
     
    12341233                        $.widget.extend( {}, value );
    12351234
    1236                 // Copy everything else by reference
     1235                    // Copy everything else by reference
    12371236                } else {
    12381237                    target[ key ] = value;
     
    14831482            currentElements = this.classesElementLookup[ classKey ];
    14841483            if ( value[ classKey ] === this.options.classes[ classKey ] ||
    1485                     !currentElements ||
    1486                     !currentElements.length ) {
     1484                !currentElements ||
     1485                !currentElements.length ) {
    14871486                continue;
    14881487            }
     
    15361535
    15371536        function bindRemoveEvent() {
     1537            var nodesToBind = [];
     1538
    15381539            options.element.each( function( _, element ) {
    15391540                var isTracked = $.map( that.classesElementLookup, function( elements ) {
     
    15451546
    15461547                if ( !isTracked ) {
    1547                     that._on( $( element ), {
    1548                         remove: "_untrackClassesElement"
    1549                     } );
    1550                 }
     1548                    nodesToBind.push( element );
     1549                }
     1550            } );
     1551
     1552            that._on( $( nodesToBind ), {
     1553                remove: "_untrackClassesElement"
    15511554            } );
    15521555        }
     
    16401643                // - disabled class as method for disabling individual parts
    16411644                if ( !suppressDisabledCheck &&
    1642                         ( instance.options.disabled === true ||
     1645                    ( instance.options.disabled === true ||
    16431646                        $( this ).hasClass( "ui-state-disabled" ) ) ) {
    16441647                    return;
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/datepicker.js

    r51897 r52665  
    11/* eslint-disable max-len, camelcase */
    22/*!
    3  * jQuery UI Datepicker 1.13.0
     3 * jQuery UI Datepicker 1.13.1
    44 * http://jqueryui.com
    55 *
     
    3636"use strict";
    3737
    38 $.extend( $.ui, { datepicker: { version: "1.13.0" } } );
     38$.extend( $.ui, { datepicker: { version: "1.13.1" } } );
    3939
    4040var datepicker_instActive;
     
    108108    this._defaults = { // Global defaults for all the date picker instances
    109109        showOn: "focus", // "focus" for popup on focus,
    110             // "button" for trigger button, or "both" for either
     110        // "button" for trigger button, or "both" for either
    111111        showAnim: "fadeIn", // Name of jQuery animation for popup
    112112        showOptions: {}, // Options for enhanced animations
    113113        defaultDate: null, // Used when field is blank: actual date,
    114             // +/-number for offset from today, null for today
     114        // +/-number for offset from today, null for today
    115115        appendText: "", // Display text following the input box, e.g. showing the format
    116116        buttonText: "...", // Text for trigger button
     
    118118        buttonImageOnly: false, // True if the image appears alone, false if it appears on a button
    119119        hideIfNoPrevNext: false, // True to hide next/previous month links
    120             // if not applicable, false to just disable them
     120        // if not applicable, false to just disable them
    121121        navigationAsDateFormat: false, // True if date formatting applied to prev/today/next links
    122122        gotoCurrent: false, // True if today link goes back to current selection instead
     
    124124        changeYear: false, // True if year can be selected directly, false if only prev/next
    125125        yearRange: "c-10:c+10", // Range of years to display in drop-down,
    126             // either relative to today's year (-nn:+nn), relative to currently displayed year
    127             // (c-nn:c+nn), absolute (nnnn:nnnn), or a combination of the above (nnnn:-n)
     126        // either relative to today's year (-nn:+nn), relative to currently displayed year
     127        // (c-nn:c+nn), absolute (nnnn:nnnn), or a combination of the above (nnnn:-n)
    128128        showOtherMonths: false, // True to show dates in other months, false to leave blank
    129129        selectOtherMonths: false, // True to allow selection of dates in other months, false for unselectable
    130130        showWeek: false, // True to show week of the year, false to not show it
    131131        calculateWeek: this.iso8601Week, // How to calculate the week of the year,
    132             // takes a Date and returns the number of the week for it
     132        // takes a Date and returns the number of the week for it
    133133        shortYearCutoff: "+10", // Short year values < this are in the current century,
    134             // > this are in the previous century,
    135             // string value starting with "+" for current year + value
     134        // > this are in the previous century,
     135        // string value starting with "+" for current year + value
    136136        minDate: null, // The earliest selectable date, or null for no limit
    137137        maxDate: null, // The latest selectable date, or null for no limit
    138138        duration: "fast", // Duration of display/closure
    139139        beforeShowDay: null, // Function that takes a date and returns an array with
    140             // [0] = true if selectable, false if not, [1] = custom CSS class name(s) or "",
    141             // [2] = cell title (optional), e.g. $.datepicker.noWeekends
     140        // [0] = true if selectable, false if not, [1] = custom CSS class name(s) or "",
     141        // [2] = cell title (optional), e.g. $.datepicker.noWeekends
    142142        beforeShow: null, // Function that takes an input field and
    143             // returns a set of custom settings for the date picker
     143        // returns a set of custom settings for the date picker
    144144        onSelect: null, // Define a callback function when a date is selected
    145145        onChangeMonthYear: null, // Define a callback function when the month or year is changed
     
    214214            inline: inline, // is datepicker inline or not
    215215            dpDiv: ( !inline ? this.dpDiv : // presentation div
    216             datepicker_bindHover( $( "<div class='" + this._inlineClass + " ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>" ) ) ) };
     216                datepicker_bindHover( $( "<div class='" + this._inlineClass + " ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>" ) ) ) };
    217217    },
    218218
     
    227227        this._attachments( input, inst );
    228228        input.addClass( this.markerClassName ).on( "keydown", this._doKeyDown ).
    229             on( "keypress", this._doKeyPress ).on( "keyup", this._doKeyUp );
     229        on( "keypress", this._doKeyPress ).on( "keyup", this._doKeyUp );
    230230        this._autoSize( inst );
    231231        $.data( target, "datepicker", inst );
     
    427427            inst.trigger.remove();
    428428            $target.removeClass( this.markerClassName ).
    429                 off( "focus", this._showDatepicker ).
    430                 off( "keydown", this._doKeyDown ).
    431                 off( "keypress", this._doKeyPress ).
    432                 off( "keyup", this._doKeyUp );
     429            off( "focus", this._showDatepicker ).
     430            off( "keydown", this._doKeyDown ).
     431            off( "keypress", this._doKeyPress ).
     432            off( "keyup", this._doKeyUp );
    433433        } else if ( nodeName === "div" || nodeName === "span" ) {
    434434            $target.removeClass( this.markerClassName ).empty();
     
    457457            target.disabled = false;
    458458            inst.trigger.filter( "button" ).
    459                 each( function() {
    460                     this.disabled = false;
    461                 } ).end().
    462                 filter( "img" ).css( { opacity: "1.0", cursor: "" } );
     459            each( function() {
     460                this.disabled = false;
     461            } ).end().
     462            filter( "img" ).css( { opacity: "1.0", cursor: "" } );
    463463        } else if ( nodeName === "div" || nodeName === "span" ) {
    464464            inline = $target.children( "." + this._inlineClass );
    465465            inline.children().removeClass( "ui-state-disabled" );
    466466            inline.find( "select.ui-datepicker-month, select.ui-datepicker-year" ).
    467                 prop( "disabled", false );
     467            prop( "disabled", false );
    468468        }
    469469        this._disabledInputs = $.map( this._disabledInputs,
     
    491491            target.disabled = true;
    492492            inst.trigger.filter( "button" ).
    493                 each( function() {
    494                     this.disabled = true;
    495                 } ).end().
    496                 filter( "img" ).css( { opacity: "0.5", cursor: "default" } );
     493            each( function() {
     494                this.disabled = true;
     495            } ).end().
     496            filter( "img" ).css( { opacity: "0.5", cursor: "default" } );
    497497        } else if ( nodeName === "div" || nodeName === "span" ) {
    498498            inline = $target.children( "." + this._inlineClass );
    499499            inline.children().addClass( "ui-state-disabled" );
    500500            inline.find( "select.ui-datepicker-month, select.ui-datepicker-year" ).
    501                 prop( "disabled", true );
     501            prop( "disabled", true );
    502502        }
    503503        this._disabledInputs = $.map( this._disabledInputs,
     
    555555            return ( name === "defaults" ? $.extend( {}, $.datepicker._defaults ) :
    556556                ( inst ? ( name === "all" ? $.extend( {}, inst.settings ) :
    557                 this._get( inst, name ) ) : null ) );
     557                    this._get( inst, name ) ) : null ) );
    558558        }
    559559
     
    648648            switch ( event.keyCode ) {
    649649                case 9: $.datepicker._hideDatepicker();
    650                         handled = false;
    651                         break; // hide on tab out
     650                    handled = false;
     651                    break; // hide on tab out
    652652                case 13: sel = $( "td." + $.datepicker._dayOverClass + ":not(." +
    653                                     $.datepicker._currentClass + ")", inst.dpDiv );
    654                         if ( sel[ 0 ] ) {
    655                             $.datepicker._selectDay( event.target, inst.selectedMonth, inst.selectedYear, sel[ 0 ] );
    656                         }
    657 
    658                         onSelect = $.datepicker._get( inst, "onSelect" );
    659                         if ( onSelect ) {
    660                             dateStr = $.datepicker._formatDate( inst );
    661 
    662                             // Trigger custom callback
    663                             onSelect.apply( ( inst.input ? inst.input[ 0 ] : null ), [ dateStr, inst ] );
    664                         } else {
    665                             $.datepicker._hideDatepicker();
    666                         }
    667 
    668                         return false; // don't submit the form
     653                    $.datepicker._currentClass + ")", inst.dpDiv );
     654                    if ( sel[ 0 ] ) {
     655                        $.datepicker._selectDay( event.target, inst.selectedMonth, inst.selectedYear, sel[ 0 ] );
     656                    }
     657
     658                    onSelect = $.datepicker._get( inst, "onSelect" );
     659                    if ( onSelect ) {
     660                        dateStr = $.datepicker._formatDate( inst );
     661
     662                        // Trigger custom callback
     663                        onSelect.apply( ( inst.input ? inst.input[ 0 ] : null ), [ dateStr, inst ] );
     664                    } else {
     665                        $.datepicker._hideDatepicker();
     666                    }
     667
     668                    return false; // don't submit the form
    669669                case 27: $.datepicker._hideDatepicker();
    670                         break; // hide on escape
     670                    break; // hide on escape
    671671                case 33: $.datepicker._adjustDate( event.target, ( event.ctrlKey ?
     672                    -$.datepicker._get( inst, "stepBigMonths" ) :
     673                    -$.datepicker._get( inst, "stepMonths" ) ), "M" );
     674                    break; // previous month/year on page up/+ ctrl
     675                case 34: $.datepicker._adjustDate( event.target, ( event.ctrlKey ?
     676                    +$.datepicker._get( inst, "stepBigMonths" ) :
     677                    +$.datepicker._get( inst, "stepMonths" ) ), "M" );
     678                    break; // next month/year on page down/+ ctrl
     679                case 35: if ( event.ctrlKey || event.metaKey ) {
     680                    $.datepicker._clearDate( event.target );
     681                }
     682                    handled = event.ctrlKey || event.metaKey;
     683                    break; // clear on ctrl or command +end
     684                case 36: if ( event.ctrlKey || event.metaKey ) {
     685                    $.datepicker._gotoToday( event.target );
     686                }
     687                    handled = event.ctrlKey || event.metaKey;
     688                    break; // current on ctrl or command +home
     689                case 37: if ( event.ctrlKey || event.metaKey ) {
     690                    $.datepicker._adjustDate( event.target, ( isRTL ? +1 : -1 ), "D" );
     691                }
     692                    handled = event.ctrlKey || event.metaKey;
     693
     694                    // -1 day on ctrl or command +left
     695                    if ( event.originalEvent.altKey ) {
     696                        $.datepicker._adjustDate( event.target, ( event.ctrlKey ?
    672697                            -$.datepicker._get( inst, "stepBigMonths" ) :
    673698                            -$.datepicker._get( inst, "stepMonths" ) ), "M" );
    674                         break; // previous month/year on page up/+ ctrl
    675                 case 34: $.datepicker._adjustDate( event.target, ( event.ctrlKey ?
     699                    }
     700
     701                    // next month/year on alt +left on Mac
     702                    break;
     703                case 38: if ( event.ctrlKey || event.metaKey ) {
     704                    $.datepicker._adjustDate( event.target, -7, "D" );
     705                }
     706                    handled = event.ctrlKey || event.metaKey;
     707                    break; // -1 week on ctrl or command +up
     708                case 39: if ( event.ctrlKey || event.metaKey ) {
     709                    $.datepicker._adjustDate( event.target, ( isRTL ? -1 : +1 ), "D" );
     710                }
     711                    handled = event.ctrlKey || event.metaKey;
     712
     713                    // +1 day on ctrl or command +right
     714                    if ( event.originalEvent.altKey ) {
     715                        $.datepicker._adjustDate( event.target, ( event.ctrlKey ?
    676716                            +$.datepicker._get( inst, "stepBigMonths" ) :
    677717                            +$.datepicker._get( inst, "stepMonths" ) ), "M" );
    678                         break; // next month/year on page down/+ ctrl
    679                 case 35: if ( event.ctrlKey || event.metaKey ) {
    680                             $.datepicker._clearDate( event.target );
    681                         }
    682                         handled = event.ctrlKey || event.metaKey;
    683                         break; // clear on ctrl or command +end
    684                 case 36: if ( event.ctrlKey || event.metaKey ) {
    685                             $.datepicker._gotoToday( event.target );
    686                         }
    687                         handled = event.ctrlKey || event.metaKey;
    688                         break; // current on ctrl or command +home
    689                 case 37: if ( event.ctrlKey || event.metaKey ) {
    690                             $.datepicker._adjustDate( event.target, ( isRTL ? +1 : -1 ), "D" );
    691                         }
    692                         handled = event.ctrlKey || event.metaKey;
    693 
    694                         // -1 day on ctrl or command +left
    695                         if ( event.originalEvent.altKey ) {
    696                             $.datepicker._adjustDate( event.target, ( event.ctrlKey ?
    697                                 -$.datepicker._get( inst, "stepBigMonths" ) :
    698                                 -$.datepicker._get( inst, "stepMonths" ) ), "M" );
    699                         }
    700 
    701                         // next month/year on alt +left on Mac
    702                         break;
    703                 case 38: if ( event.ctrlKey || event.metaKey ) {
    704                             $.datepicker._adjustDate( event.target, -7, "D" );
    705                         }
    706                         handled = event.ctrlKey || event.metaKey;
    707                         break; // -1 week on ctrl or command +up
    708                 case 39: if ( event.ctrlKey || event.metaKey ) {
    709                             $.datepicker._adjustDate( event.target, ( isRTL ? -1 : +1 ), "D" );
    710                         }
    711                         handled = event.ctrlKey || event.metaKey;
    712 
    713                         // +1 day on ctrl or command +right
    714                         if ( event.originalEvent.altKey ) {
    715                             $.datepicker._adjustDate( event.target, ( event.ctrlKey ?
    716                                 +$.datepicker._get( inst, "stepBigMonths" ) :
    717                                 +$.datepicker._get( inst, "stepMonths" ) ), "M" );
    718                         }
    719 
    720                         // next month/year on alt +right
    721                         break;
     718                    }
     719
     720                    // next month/year on alt +right
     721                    break;
    722722                case 40: if ( event.ctrlKey || event.metaKey ) {
    723                             $.datepicker._adjustDate( event.target, +7, "D" );
    724                         }
    725                         handled = event.ctrlKey || event.metaKey;
    726                         break; // +1 week on ctrl or command +down
     723                    $.datepicker._adjustDate( event.target, +7, "D" );
     724                }
     725                    handled = event.ctrlKey || event.metaKey;
     726                    break; // +1 week on ctrl or command +down
    727727                default: handled = false;
    728728            }
     
    838838        offset = $.datepicker._checkOffset( inst, offset, isFixed );
    839839        inst.dpDiv.css( { position: ( $.datepicker._inDialog && $.blockUI ?
    840             "static" : ( isFixed ? "fixed" : "absolute" ) ), display: "none",
     840                "static" : ( isFixed ? "fixed" : "absolute" ) ), display: "none",
    841841            left: offset.left + "px", top: offset.top + "px" } );
    842842
     
    884884        }
    885885        inst.dpDiv[ ( numMonths[ 0 ] !== 1 || numMonths[ 1 ] !== 1 ? "add" : "remove" ) +
    886             "Class" ]( "ui-datepicker-multi" );
     886        "Class" ]( "ui-datepicker-multi" );
    887887        inst.dpDiv[ ( this._get( inst, "isRTL" ) ? "add" : "remove" ) +
    888             "Class" ]( "ui-datepicker-rtl" );
     888        "Class" ]( "ui-datepicker-rtl" );
    889889
    890890        if ( inst === $.datepicker._curInst && $.datepicker._datepickerShowing && $.datepicker._shouldFocusInput( inst ) ) {
     
    10211021                $.datepicker._datepickerShowing && !( $.datepicker._inDialog && $.blockUI ) ) ) ||
    10221022            ( $target.hasClass( $.datepicker.markerClassName ) && $.datepicker._curInst !== inst ) ) {
    1023                 $.datepicker._hideDatepicker();
     1023            $.datepicker._hideDatepicker();
    10241024        }
    10251025    },
     
    10631063
    10641064        inst[ "selected" + ( period === "M" ? "Month" : "Year" ) ] =
    1065         inst[ "draw" + ( period === "M" ? "Month" : "Year" ) ] =
    1066             parseInt( select.options[ select.selectedIndex ].value, 10 );
     1065            inst[ "draw" + ( period === "M" ? "Month" : "Year" ) ] =
     1066                parseInt( select.options[ select.selectedIndex ].value, 10 );
    10671067
    10681068        this._notifyChange( inst );
     
    12151215                var isDoubled = lookAhead( match ),
    12161216                    size = ( match === "@" ? 14 : ( match === "!" ? 20 :
    1217                     ( match === "y" && isDoubled ? 4 : ( match === "o" ? 3 : 2 ) ) ) ),
     1217                        ( match === "y" && isDoubled ? 4 : ( match === "o" ? 3 : 2 ) ) ) ),
    12181218                    minSize = ( match === "y" ? size : 1 ),
    12191219                    digits = new RegExp( "^\\d{" + minSize + "," + size + "}" ),
     
    15781578
    15791579                var date = ( offset.toLowerCase().match( /^c/ ) ?
    1580                     $.datepicker._getDate( inst ) : null ) || new Date(),
     1580                        $.datepicker._getDate( inst ) : null ) || new Date(),
    15811581                    year = date.getFullYear(),
    15821582                    month = date.getMonth(),
     
    16551655        var startDate = ( !inst.currentYear || ( inst.input && inst.input.val() === "" ) ? null :
    16561656            this._daylightSavingAdjust( new Date(
    1657             inst.currentYear, inst.currentMonth, inst.currentDay ) ) );
    1658             return startDate;
     1657                inst.currentYear, inst.currentMonth, inst.currentDay ) ) );
     1658        return startDate;
    16591659    },
    16601660
     
    18831883                    ( /all|right/.test( cornerClass ) && row === 0 ? ( isRTL ? prev : next ) : "" ) +
    18841884                    this._generateMonthYearHeader( inst, drawMonth, drawYear, minDate, maxDate,
    1885                     row > 0 || col > 0, monthNames, monthNamesShort ) + // draw month headers
     1885                        row > 0 || col > 0, monthNames, monthNamesShort ) + // draw month headers
    18861886                    "</div><table class='ui-datepicker-calendar'><thead>" +
    18871887                    "<tr>";
     
    19181918                            ( defaultDate.getTime() === printDate.getTime() && defaultDate.getTime() === selectedDate.getTime() ) ?
    19191919
    1920                             // or defaultDate is current printedDate and defaultDate is selectedDate
    1921                             " " + this._dayOverClass : "" ) + // highlight selected day
     1920                                // or defaultDate is current printedDate and defaultDate is selectedDate
     1921                                " " + this._dayOverClass : "" ) + // highlight selected day
    19221922                            ( unselectable ? " " + this._unselectableClass + " ui-state-disabled" : "" ) +  // highlight unselectable days
    19231923                            ( otherMonth && !showOtherMonths ? "" : " " + daySettings[ 1 ] + // highlight custom dates
    1924                             ( printDate.getTime() === currentDate.getTime() ? " " + this._currentClass : "" ) + // highlight selected day
    1925                             ( printDate.getTime() === today.getTime() ? " ui-datepicker-today" : "" ) ) + "'" + // highlight today (if different)
     1924                                ( printDate.getTime() === currentDate.getTime() ? " " + this._currentClass : "" ) + // highlight selected day
     1925                                ( printDate.getTime() === today.getTime() ? " ui-datepicker-today" : "" ) ) + "'" + // highlight today (if different)
    19261926                            ( ( !otherMonth || showOtherMonths ) && daySettings[ 2 ] ? " title='" + daySettings[ 2 ].replace( /'/g, "&#39;" ) + "'" : "" ) + // cell title
    19271927                            ( unselectable ? "" : " data-handler='selectDay' data-event='click' data-month='" + printDate.getMonth() + "' data-year='" + printDate.getFullYear() + "'" ) + ">" + // actions
    19281928                            ( otherMonth && !showOtherMonths ? "&#xa0;" : // display for other months
    1929                             ( unselectable ? "<span class='ui-state-default'>" + printDate.getDate() + "</span>" : "<a class='ui-state-default" +
    1930                             ( printDate.getTime() === today.getTime() ? " ui-state-highlight" : "" ) +
    1931                             ( printDate.getTime() === currentDate.getTime() ? " ui-state-active" : "" ) + // highlight selected day
    1932                             ( otherMonth ? " ui-priority-secondary" : "" ) + // distinguish dates from other months
    1933                             "' href='#' aria-current='" + ( printDate.getTime() === currentDate.getTime() ? "true" : "false" ) + // mark date as selected for screen reader
    1934                             "' data-date='" + printDate.getDate() + // store date as data
    1935                             "'>" + printDate.getDate() + "</a>" ) ) + "</td>"; // display selectable date
     1929                                ( unselectable ? "<span class='ui-state-default'>" + printDate.getDate() + "</span>" : "<a class='ui-state-default" +
     1930                                    ( printDate.getTime() === today.getTime() ? " ui-state-highlight" : "" ) +
     1931                                    ( printDate.getTime() === currentDate.getTime() ? " ui-state-active" : "" ) + // highlight selected day
     1932                                    ( otherMonth ? " ui-priority-secondary" : "" ) + // distinguish dates from other months
     1933                                    "' href='#' aria-current='" + ( printDate.getTime() === currentDate.getTime() ? "true" : "false" ) + // mark date as selected for screen reader
     1934                                    "' data-date='" + printDate.getDate() + // store date as data
     1935                                    "'>" + printDate.getDate() + "</a>" ) ) + "</td>"; // display selectable date
    19361936                        printDate.setDate( printDate.getDate() + 1 );
    19371937                        printDate = this._daylightSavingAdjust( printDate );
     
    19451945                }
    19461946                calender += "</tbody></table>" + ( isMultiMonth ? "</div>" +
    1947                             ( ( numMonths[ 0 ] > 0 && col === numMonths[ 1 ] - 1 ) ? "<div class='ui-datepicker-row-break'></div>" : "" ) : "" );
     1947                    ( ( numMonths[ 0 ] > 0 && col === numMonths[ 1 ] - 1 ) ? "<div class='ui-datepicker-row-break'></div>" : "" ) : "" );
    19481948                group += calender;
    19491949            }
     
    19571957    /* Generate the month and year header. */
    19581958    _generateMonthYearHeader: function( inst, drawMonth, drawYear, minDate, maxDate,
    1959             secondary, monthNames, monthNamesShort ) {
     1959                                        secondary, monthNames, monthNamesShort ) {
    19601960
    19611961        var inMinYear, inMaxYear, month, years, thisYear, determineYear, year, endYear,
     
    20022002                    var year = ( value.match( /c[+\-].*/ ) ? drawYear + parseInt( value.substring( 1 ), 10 ) :
    20032003                        ( value.match( /[+\-].*/ ) ? thisYear + parseInt( value, 10 ) :
    2004                         parseInt( value, 10 ) ) );
     2004                            parseInt( value, 10 ) ) );
    20052005                    return ( isNaN( year ) ? thisYear : year );
    20062006                };
     
    20872087        var numMonths = this._getNumberOfMonths( inst ),
    20882088            date = this._daylightSavingAdjust( new Date( curYear,
    2089             curMonth + ( offset < 0 ? offset : numMonths[ 0 ] * numMonths[ 1 ] ), 1 ) );
     2089                curMonth + ( offset < 0 ? offset : numMonths[ 0 ] * numMonths[ 1 ] ), 1 ) );
    20902090
    20912091        if ( offset < 0 ) {
     
    21032103            maxYear = null,
    21042104            years = this._get( inst, "yearRange" );
    2105             if ( years ) {
    2106                 yearSplit = years.split( ":" );
    2107                 currentYear = new Date().getFullYear();
    2108                 minYear = parseInt( yearSplit[ 0 ], 10 );
    2109                 maxYear = parseInt( yearSplit[ 1 ], 10 );
    2110                 if ( yearSplit[ 0 ].match( /[+\-].*/ ) ) {
    2111                     minYear += currentYear;
    2112                 }
    2113                 if ( yearSplit[ 1 ].match( /[+\-].*/ ) ) {
    2114                     maxYear += currentYear;
    2115                 }
    2116             }
     2105        if ( years ) {
     2106            yearSplit = years.split( ":" );
     2107            currentYear = new Date().getFullYear();
     2108            minYear = parseInt( yearSplit[ 0 ], 10 );
     2109            maxYear = parseInt( yearSplit[ 1 ], 10 );
     2110            if ( yearSplit[ 0 ].match( /[+\-].*/ ) ) {
     2111                minYear += currentYear;
     2112            }
     2113            if ( yearSplit[ 1 ].match( /[+\-].*/ ) ) {
     2114                maxYear += currentYear;
     2115            }
     2116        }
    21172117
    21182118        return ( ( !minDate || date.getTime() >= minDate.getTime() ) &&
     
    21402140        }
    21412141        var date = ( day ? ( typeof day === "object" ? day :
    2142             this._daylightSavingAdjust( new Date( year, month, day ) ) ) :
     2142                this._daylightSavingAdjust( new Date( year, month, day ) ) ) :
    21432143            this._daylightSavingAdjust( new Date( inst.currentYear, inst.currentMonth, inst.currentDay ) ) );
    21442144        return this.formatDate( this._get( inst, "dateFormat" ), date, this._getFormatConfig( inst ) );
     
    21542154    var selector = "button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";
    21552155    return dpDiv.on( "mouseout", selector, function() {
    2156             $( this ).removeClass( "ui-state-hover" );
    2157             if ( this.className.indexOf( "ui-datepicker-prev" ) !== -1 ) {
    2158                 $( this ).removeClass( "ui-datepicker-prev-hover" );
    2159             }
    2160             if ( this.className.indexOf( "ui-datepicker-next" ) !== -1 ) {
    2161                 $( this ).removeClass( "ui-datepicker-next-hover" );
    2162             }
    2163         } )
     2156        $( this ).removeClass( "ui-state-hover" );
     2157        if ( this.className.indexOf( "ui-datepicker-prev" ) !== -1 ) {
     2158            $( this ).removeClass( "ui-datepicker-prev-hover" );
     2159        }
     2160        if ( this.className.indexOf( "ui-datepicker-next" ) !== -1 ) {
     2161            $( this ).removeClass( "ui-datepicker-next-hover" );
     2162        }
     2163    } )
    21642164        .on( "mouseover", selector, datepicker_handleMouseover );
    21652165}
     
    22142214    if ( typeof options === "string" && ( options === "isDisabled" || options === "getDate" || options === "widget" ) ) {
    22152215        return $.datepicker[ "_" + options + "Datepicker" ].
    2216             apply( $.datepicker, [ this[ 0 ] ].concat( otherArgs ) );
     2216        apply( $.datepicker, [ this[ 0 ] ].concat( otherArgs ) );
    22172217    }
    22182218    if ( options === "option" && arguments.length === 2 && typeof arguments[ 1 ] === "string" ) {
    22192219        return $.datepicker[ "_" + options + "Datepicker" ].
    2220             apply( $.datepicker, [ this[ 0 ] ].concat( otherArgs ) );
     2220        apply( $.datepicker, [ this[ 0 ] ].concat( otherArgs ) );
    22212221    }
    22222222    return this.each( function() {
     
    22332233$.datepicker.initialized = false;
    22342234$.datepicker.uuid = new Date().getTime();
    2235 $.datepicker.version = "1.13.0";
     2235$.datepicker.version = "1.13.1";
    22362236
    22372237return $.datepicker;
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/dialog.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Dialog 1.13.0
     2 * jQuery UI Dialog 1.13.1
    33 * http://jqueryui.com
    44 *
     
    4040
    4141$.widget( "ui.dialog", {
    42     version: "1.13.0",
     42    version: "1.13.1",
    4343    options: {
    4444        appendTo: "body",
     
    355355            keydown: function( event ) {
    356356                if ( this.options.closeOnEscape && !event.isDefaultPrevented() && event.keyCode &&
    357                         event.keyCode === $.ui.keyCode.ESCAPE ) {
     357                    event.keyCode === $.ui.keyCode.ESCAPE ) {
    358358                    event.preventDefault();
    359359                    this.close( event );
     
    370370
    371371                if ( ( event.target === last[ 0 ] || event.target === this.uiDialog[ 0 ] ) &&
    372                         !event.shiftKey ) {
     372                    !event.shiftKey ) {
    373373                    this._delay( function() {
    374374                        first.trigger( "focus" );
     
    376376                    event.preventDefault();
    377377                } else if ( ( event.target === first[ 0 ] ||
    378                         event.target === this.uiDialog[ 0 ] ) && event.shiftKey ) {
     378                    event.target === this.uiDialog[ 0 ] ) && event.shiftKey ) {
    379379                    this._delay( function() {
    380380                        last.trigger( "focus" );
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/draggable.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Draggable 1.13.0
     2 * jQuery UI Draggable 1.13.1
    33 * http://jqueryui.com
    44 *
     
    3535
    3636$.widget( "ui.draggable", $.ui.mouse, {
    37     version: "1.13.0",
     37    version: "1.13.1",
    3838    widgetEventPrefix: "drag",
    3939    options: {
     
    103103        // Among others, prevent a drag on a resizable-handle
    104104        if ( this.helper || o.disabled ||
    105                 $( event.target ).closest( ".ui-resizable-handle" ).length > 0 ) {
     105            $( event.target ).closest( ".ui-resizable-handle" ).length > 0 ) {
    106106            return false;
    107107        }
     
    186186        this.offsetParent = this.helper.offsetParent();
    187187        this.hasFixedAncestor = this.helper.parents().filter( function() {
    188                 return $( this ).css( "position" ) === "fixed";
    189             } ).length > 0;
     188            return $( this ).css( "position" ) === "fixed";
     189        } ).length > 0;
    190190
    191191        //The element's absolute position on the page minus margins
     
    295295
    296296        if ( ( this.options.revert === "invalid" && !dropped ) ||
    297                 ( this.options.revert === "valid" && dropped ) ||
    298                 this.options.revert === true || ( typeof this.options.revert === "function" &&
     297            ( this.options.revert === "valid" && dropped ) ||
     298            this.options.revert === true || ( typeof this.options.revert === "function" &&
    299299                this.options.revert.call( this.element, dropped ) )
    300300        ) {
     
    389389
    390390        if ( helper[ 0 ] !== this.element[ 0 ] &&
    391                 !( /(fixed|absolute)/ ).test( helper.css( "position" ) ) ) {
     391            !( /(fixed|absolute)/ ).test( helper.css( "position" ) ) ) {
    392392            helper.css( "position", "absolute" );
    393393        }
     
    442442        // offset of the parent, and never recalculated upon drag
    443443        if ( this.cssPosition === "absolute" && this.scrollParent[ 0 ] !== document &&
    444                 $.contains( this.scrollParent[ 0 ], this.offsetParent[ 0 ] ) ) {
     444            $.contains( this.scrollParent[ 0 ], this.offsetParent[ 0 ] ) ) {
    445445            po.left += this.scrollParent.scrollLeft();
    446446            po.top += this.scrollParent.scrollTop();
     
    509509                $( window ).scrollTop() - this.offset.relative.top - this.offset.parent.top,
    510510                $( window ).scrollLeft() + $( window ).width() -
    511                     this.helperProportions.width - this.margins.left,
     511                this.helperProportions.width - this.margins.left,
    512512                $( window ).scrollTop() +
    513                     ( $( window ).height() || document.body.parentNode.scrollHeight ) -
    514                     this.helperProportions.height - this.margins.top
     513                ( $( window ).height() || document.body.parentNode.scrollHeight ) -
     514                this.helperProportions.height - this.margins.top
    515515            ];
    516516            return;
     
    523523                $( document ).width() - this.helperProportions.width - this.margins.left,
    524524                ( $( document ).height() || document.body.parentNode.scrollHeight ) -
    525                     this.helperProportions.height - this.margins.top
     525                this.helperProportions.height - this.margins.top
    526526            ];
    527527            return;
     
    548548        this.containment = [
    549549            ( parseInt( c.css( "borderLeftWidth" ), 10 ) || 0 ) +
    550                 ( parseInt( c.css( "paddingLeft" ), 10 ) || 0 ),
     550            ( parseInt( c.css( "paddingLeft" ), 10 ) || 0 ),
    551551            ( parseInt( c.css( "borderTopWidth" ), 10 ) || 0 ) +
    552                 ( parseInt( c.css( "paddingTop" ), 10 ) || 0 ),
     552            ( parseInt( c.css( "paddingTop" ), 10 ) || 0 ),
    553553            ( isUserScrollable ? Math.max( ce.scrollWidth, ce.offsetWidth ) : ce.offsetWidth ) -
    554                 ( parseInt( c.css( "borderRightWidth" ), 10 ) || 0 ) -
    555                 ( parseInt( c.css( "paddingRight" ), 10 ) || 0 ) -
    556                 this.helperProportions.width -
    557                 this.margins.left -
    558                 this.margins.right,
     554            ( parseInt( c.css( "borderRightWidth" ), 10 ) || 0 ) -
     555            ( parseInt( c.css( "paddingRight" ), 10 ) || 0 ) -
     556            this.helperProportions.width -
     557            this.margins.left -
     558            this.margins.right,
    559559            ( isUserScrollable ? Math.max( ce.scrollHeight, ce.offsetHeight ) : ce.offsetHeight ) -
    560                 ( parseInt( c.css( "borderBottomWidth" ), 10 ) || 0 ) -
    561                 ( parseInt( c.css( "paddingBottom" ), 10 ) || 0 ) -
    562                 this.helperProportions.height -
    563                 this.margins.top -
    564                 this.margins.bottom
     560            ( parseInt( c.css( "borderBottomWidth" ), 10 ) || 0 ) -
     561            ( parseInt( c.css( "paddingBottom" ), 10 ) || 0 ) -
     562            this.helperProportions.height -
     563            this.margins.top -
     564            this.margins.bottom
    565565        ];
    566566        this.relativeContainer = c;
     
    667667                pageY = containment ? ( ( top - this.offset.click.top >= containment[ 1 ] ||
    668668                    top - this.offset.click.top > containment[ 3 ] ) ?
    669                         top :
    670                         ( ( top - this.offset.click.top >= containment[ 1 ] ) ?
    671                             top - o.grid[ 1 ] : top + o.grid[ 1 ] ) ) : top;
     669                    top :
     670                    ( ( top - this.offset.click.top >= containment[ 1 ] ) ?
     671                        top - o.grid[ 1 ] : top + o.grid[ 1 ] ) ) : top;
    672672
    673673                left = o.grid[ 0 ] ? this.originalPageX +
     
    676676                pageX = containment ? ( ( left - this.offset.click.left >= containment[ 0 ] ||
    677677                    left - this.offset.click.left > containment[ 2 ] ) ?
    678                         left :
    679                         ( ( left - this.offset.click.left >= containment[ 0 ] ) ?
    680                             left - o.grid[ 0 ] : left + o.grid[ 0 ] ) ) : left;
     678                    left :
     679                    ( ( left - this.offset.click.left >= containment[ 0 ] ) ?
     680                        left - o.grid[ 0 ] : left + o.grid[ 0 ] ) ) : left;
    681681            }
    682682
     
    852852
    853853                    if ( this !== sortable &&
    854                             this._intersectsWith( this.containerCache ) &&
    855                             $.contains( sortable.element[ 0 ], this.element[ 0 ] ) ) {
     854                        this._intersectsWith( this.containerCache ) &&
     855                        $.contains( sortable.element[ 0 ], this.element[ 0 ] ) ) {
    856856                        innermostIntersecting = false;
    857857                    }
     
    10131013
    10141014        if ( i.scrollParentNotHidden[ 0 ] !== i.document[ 0 ] &&
    1015                 i.scrollParentNotHidden[ 0 ].tagName !== "HTML" ) {
     1015            i.scrollParentNotHidden[ 0 ].tagName !== "HTML" ) {
    10161016            i.overflowOffset = i.scrollParentNotHidden.offset();
    10171017        }
     
    10271027            if ( !o.axis || o.axis !== "x" ) {
    10281028                if ( ( i.overflowOffset.top + scrollParent.offsetHeight ) - event.pageY <
    1029                         o.scrollSensitivity ) {
     1029                    o.scrollSensitivity ) {
    10301030                    scrollParent.scrollTop = scrolled = scrollParent.scrollTop + o.scrollSpeed;
    10311031                } else if ( event.pageY - i.overflowOffset.top < o.scrollSensitivity ) {
     
    10361036            if ( !o.axis || o.axis !== "y" ) {
    10371037                if ( ( i.overflowOffset.left + scrollParent.offsetWidth ) - event.pageX <
    1038                         o.scrollSensitivity ) {
     1038                    o.scrollSensitivity ) {
    10391039                    scrollParent.scrollLeft = scrolled = scrollParent.scrollLeft + o.scrollSpeed;
    10401040                } else if ( event.pageX - i.overflowOffset.left < o.scrollSensitivity ) {
     
    10491049                    scrolled = $( document ).scrollTop( $( document ).scrollTop() - o.scrollSpeed );
    10501050                } else if ( $( window ).height() - ( event.pageY - $( document ).scrollTop() ) <
    1051                         o.scrollSensitivity ) {
     1051                    o.scrollSensitivity ) {
    10521052                    scrolled = $( document ).scrollTop( $( document ).scrollTop() + o.scrollSpeed );
    10531053                }
     
    10601060                    );
    10611061                } else if ( $( window ).width() - ( event.pageX - $( document ).scrollLeft() ) <
    1062                         o.scrollSensitivity ) {
     1062                    o.scrollSensitivity ) {
    10631063                    scrolled = $( document ).scrollLeft(
    10641064                        $( document ).scrollLeft() + o.scrollSpeed
     
    11131113
    11141114            if ( x2 < l - d || x1 > r + d || y2 < t - d || y1 > b + d ||
    1115                     !$.contains( inst.snapElements[ i ].item.ownerDocument,
     1115                !$.contains( inst.snapElements[ i ].item.ownerDocument,
    11161116                    inst.snapElements[ i ].item ) ) {
    11171117                if ( inst.snapElements[ i ].snapping ) {
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/droppable.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Droppable 1.13.0
     2 * jQuery UI Droppable 1.13.1
    33 * http://jqueryui.com
    44 *
     
    3535
    3636$.widget( "ui.droppable", {
    37     version: "1.13.0",
     37    version: "1.13.1",
    3838    widgetEventPrefix: "drop",
    3939    options: {
     
    151151        // Bail if draggable and droppable are same element
    152152        if ( !draggable || ( draggable.currentItem ||
    153                 draggable.element )[ 0 ] === this.element[ 0 ] ) {
     153            draggable.element )[ 0 ] === this.element[ 0 ] ) {
    154154            return;
    155155        }
    156156
    157157        if ( this.accept.call( this.element[ 0 ], ( draggable.currentItem ||
    158                 draggable.element ) ) ) {
     158            draggable.element ) ) ) {
    159159            this._addHoverClass();
    160160            this._trigger( "over", event, this.ui( draggable ) );
     
    169169        // Bail if draggable and droppable are same element
    170170        if ( !draggable || ( draggable.currentItem ||
    171                 draggable.element )[ 0 ] === this.element[ 0 ] ) {
     171            draggable.element )[ 0 ] === this.element[ 0 ] ) {
    172172            return;
    173173        }
    174174
    175175        if ( this.accept.call( this.element[ 0 ], ( draggable.currentItem ||
    176                 draggable.element ) ) ) {
     176            draggable.element ) ) ) {
    177177            this._removeHoverClass();
    178178            this._trigger( "out", event, this.ui( draggable ) );
     
    188188        // Bail if draggable and droppable are same element
    189189        if ( !draggable || ( draggable.currentItem ||
    190                 draggable.element )[ 0 ] === this.element[ 0 ] ) {
     190            draggable.element )[ 0 ] === this.element[ 0 ] ) {
    191191            return false;
    192192        }
     
    219219
    220220        if ( this.accept.call( this.element[ 0 ],
    221                 ( draggable.currentItem || draggable.element ) ) ) {
     221            ( draggable.currentItem || draggable.element ) ) ) {
    222222            this._removeActiveClass();
    223223            this._removeHoverClass();
     
    282282
    283283        switch ( toleranceMode ) {
    284         case "fit":
    285             return ( l <= x1 && x2 <= r && t <= y1 && y2 <= b );
    286         case "intersect":
    287             return ( l < x1 + ( draggable.helperProportions.width / 2 ) && // Right Half
    288                 x2 - ( draggable.helperProportions.width / 2 ) < r && // Left Half
    289                 t < y1 + ( draggable.helperProportions.height / 2 ) && // Bottom Half
    290                 y2 - ( draggable.helperProportions.height / 2 ) < b ); // Top Half
    291         case "pointer":
    292             return isOverAxis( event.pageY, t, droppable.proportions().height ) &&
    293                 isOverAxis( event.pageX, l, droppable.proportions().width );
    294         case "touch":
    295             return (
    296                 ( y1 >= t && y1 <= b ) || // Top edge touching
    297                 ( y2 >= t && y2 <= b ) || // Bottom edge touching
    298                 ( y1 < t && y2 > b ) // Surrounded vertically
    299             ) && (
    300                 ( x1 >= l && x1 <= r ) || // Left edge touching
    301                 ( x2 >= l && x2 <= r ) || // Right edge touching
    302                 ( x1 < l && x2 > r ) // Surrounded horizontally
    303             );
    304         default:
    305             return false;
     284            case "fit":
     285                return ( l <= x1 && x2 <= r && t <= y1 && y2 <= b );
     286            case "intersect":
     287                return ( l < x1 + ( draggable.helperProportions.width / 2 ) && // Right Half
     288                    x2 - ( draggable.helperProportions.width / 2 ) < r && // Left Half
     289                    t < y1 + ( draggable.helperProportions.height / 2 ) && // Bottom Half
     290                    y2 - ( draggable.helperProportions.height / 2 ) < b ); // Top Half
     291            case "pointer":
     292                return isOverAxis( event.pageY, t, droppable.proportions().height ) &&
     293                    isOverAxis( event.pageX, l, droppable.proportions().width );
     294            case "touch":
     295                return (
     296                    ( y1 >= t && y1 <= b ) || // Top edge touching
     297                    ( y2 >= t && y2 <= b ) || // Bottom edge touching
     298                    ( y1 < t && y2 > b ) // Surrounded vertically
     299                ) && (
     300                    ( x1 >= l && x1 <= r ) || // Left edge touching
     301                    ( x2 >= l && x2 <= r ) || // Right edge touching
     302                    ( x1 < l && x2 > r ) // Surrounded horizontally
     303                );
     304            default:
     305                return false;
    306306        }
    307307    };
     
    325325            // No disabled and non-accepted
    326326            if ( m[ i ].options.disabled || ( t && !m[ i ].accept.call( m[ i ].element[ 0 ],
    327                     ( t.currentItem || t.element ) ) ) ) {
     327                ( t.currentItem || t.element ) ) ) ) {
    328328                continue;
    329329            }
     
    367367            }
    368368            if ( !this.options.disabled && this.visible &&
    369                     $.ui.intersect( draggable, this, this.options.tolerance, event ) ) {
     369                $.ui.intersect( draggable, this, this.options.tolerance, event ) ) {
    370370                dropped = this._drop.call( this, event ) || dropped;
    371371            }
    372372
    373373            if ( !this.options.disabled && this.visible && this.accept.call( this.element[ 0 ],
    374                     ( draggable.currentItem || draggable.element ) ) ) {
     374                ( draggable.currentItem || draggable.element ) ) ) {
    375375                this.isout = true;
    376376                this.isover = false;
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect-blind.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Effects Blind 1.13.0
     2 * jQuery UI Effects Blind 1.13.1
    33 * http://jqueryui.com
    44 *
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect-bounce.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Effects Bounce 1.13.0
     2 * jQuery UI Effects Bounce 1.13.1
    33 * http://jqueryui.com
    44 *
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect-clip.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Effects Clip 1.13.0
     2 * jQuery UI Effects Clip 1.13.1
    33 * http://jqueryui.com
    44 *
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect-drop.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Effects Drop 1.13.0
     2 * jQuery UI Effects Drop 1.13.1
    33 * http://jqueryui.com
    44 *
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect-explode.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Effects Explode 1.13.0
     2 * jQuery UI Effects Explode 1.13.1
    33 * http://jqueryui.com
    44 *
     
    8484                // where the original was located +left and +top equal to the size of pieces
    8585                .parent()
    86                     .addClass( "ui-effects-explode" )
    87                     .css( {
    88                         position: "absolute",
    89                         overflow: "hidden",
    90                         width: width,
    91                         height: height,
    92                         left: left + ( show ? mx * width : 0 ),
    93                         top: top + ( show ? my * height : 0 ),
    94                         opacity: show ? 0 : 1
    95                     } )
    96                     .animate( {
    97                         left: left + ( show ? 0 : mx * width ),
    98                         top: top + ( show ? 0 : my * height ),
    99                         opacity: show ? 1 : 0
    100                     }, options.duration || 500, options.easing, childComplete );
     86                .addClass( "ui-effects-explode" )
     87                .css( {
     88                    position: "absolute",
     89                    overflow: "hidden",
     90                    width: width,
     91                    height: height,
     92                    left: left + ( show ? mx * width : 0 ),
     93                    top: top + ( show ? my * height : 0 ),
     94                    opacity: show ? 0 : 1
     95                } )
     96                .animate( {
     97                    left: left + ( show ? 0 : mx * width ),
     98                    top: top + ( show ? 0 : my * height ),
     99                    opacity: show ? 1 : 0
     100                }, options.duration || 500, options.easing, childComplete );
    101101        }
    102102    }
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect-fade.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Effects Fade 1.13.0
     2 * jQuery UI Effects Fade 1.13.1
    33 * http://jqueryui.com
    44 *
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect-fold.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Effects Fold 1.13.0
     2 * jQuery UI Effects Fold 1.13.1
    33 * http://jqueryui.com
    44 *
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect-highlight.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Effects Highlight 1.13.0
     2 * jQuery UI Effects Highlight 1.13.1
    33 * http://jqueryui.com
    44 *
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect-puff.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Effects Puff 1.13.0
     2 * jQuery UI Effects Puff 1.13.1
    33 * http://jqueryui.com
    44 *
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect-pulsate.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Effects Pulsate 1.13.0
     2 * jQuery UI Effects Pulsate 1.13.1
    33 * http://jqueryui.com
    44 *
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect-scale.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Effects Scale 1.13.0
     2 * jQuery UI Effects Scale 1.13.1
    33 * http://jqueryui.com
    44 *
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect-shake.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Effects Shake 1.13.0
     2 * jQuery UI Effects Shake 1.13.1
    33 * http://jqueryui.com
    44 *
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect-size.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Effects Size 1.13.0
     2 * jQuery UI Effects Size 1.13.1
    33 * http://jqueryui.com
    44 *
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect-slide.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Effects Slide 1.13.0
     2 * jQuery UI Effects Slide 1.13.1
    33 * http://jqueryui.com
    44 *
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect-transfer.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Effects Transfer 1.13.0
     2 * jQuery UI Effects Transfer 1.13.1
    33 * http://jqueryui.com
    44 *
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Effects 1.13.0
     2 * jQuery UI Effects 1.13.1
    33 * http://jqueryui.com
    44 *
     
    3333// Include version.js
    3434$.ui = $.ui || {};
    35 $.ui.version = "1.13.0";
     35$.ui.version = "1.13.1";
    3636
    3737// Source: jquery-var-for-color.js
     
    813813        }
    814814
    815     // Support: Opera, IE <9
     815        // Support: Opera, IE <9
    816816    } else {
    817817        for ( key in style ) {
     
    11201120
    11211121$.extend( $.effects, {
    1122     version: "1.13.0",
     1122    version: "1.13.1",
    11231123
    11241124    define: function( name, mode, effect ) {
     
    12021202
    12031203        switch ( origin[ 0 ] ) {
    1204         case "top":
    1205             y = 0;
    1206             break;
    1207         case "middle":
    1208             y = 0.5;
    1209             break;
    1210         case "bottom":
    1211             y = 1;
    1212             break;
    1213         default:
    1214             y = origin[ 0 ] / original.height;
     1204            case "top":
     1205                y = 0;
     1206                break;
     1207            case "middle":
     1208                y = 0.5;
     1209                break;
     1210            case "bottom":
     1211                y = 1;
     1212                break;
     1213            default:
     1214                y = origin[ 0 ] / original.height;
    12151215        }
    12161216
    12171217        switch ( origin[ 1 ] ) {
    1218         case "left":
    1219             x = 0;
    1220             break;
    1221         case "center":
    1222             x = 0.5;
    1223             break;
    1224         case "right":
    1225             x = 1;
    1226             break;
    1227         default:
    1228             x = origin[ 1 ] / original.width;
     1218            case "left":
     1219                x = 0;
     1220                break;
     1221            case "center":
     1222                x = 0.5;
     1223                break;
     1224            case "right":
     1225                x = 1;
     1226                break;
     1227            default:
     1228                x = origin[ 1 ] / original.width;
    12291229        }
    12301230
     
    12511251            marginRight: element.css( "marginRight" )
    12521252        } )
    1253         .outerWidth( element.outerWidth() )
    1254         .outerHeight( element.outerHeight() );
     1253            .outerWidth( element.outerWidth() )
     1254            .outerHeight( element.outerHeight() );
    12551255
    12561256        if ( /^(static|relative)/.test( cssPosition ) ) {
     
    12731273                "float": element.css( "float" )
    12741274            } )
    1275             .outerWidth( element.outerWidth() )
    1276             .outerHeight( element.outerHeight() )
    1277             .addClass( "ui-effects-placeholder" );
     1275                .outerWidth( element.outerWidth() )
     1276                .outerHeight( element.outerHeight() )
     1277                .addClass( "ui-effects-placeholder" );
    12781278
    12791279            element.data( dataSpace + "placeholder", placeholder );
     
    12911291    removePlaceholder: function( element ) {
    12921292        var dataKey = dataSpace + "placeholder",
    1293                 placeholder = element.data( dataKey );
     1293            placeholder = element.data( dataKey );
    12941294
    12951295        if ( placeholder ) {
     
    13631363    effect.duration = $.fx.off ? 0 :
    13641364        typeof speed === "number" ? speed :
    1365         speed in $.fx.speeds ? $.fx.speeds[ speed ] :
    1366         $.fx.speeds._default;
     1365            speed in $.fx.speeds ? $.fx.speeds[ speed ] :
     1366                $.fx.speeds._default;
    13671367
    13681368    effect.complete = callback || options.complete;
     
    14211421                // See $.uiBackCompat inside of run() for removal of defaultMode in 1.14
    14221422                if ( defaultMode && ( normalizedMode === "show" ||
    1423                         ( normalizedMode === defaultMode && normalizedMode === "hide" ) ) ) {
     1423                    ( normalizedMode === defaultMode && normalizedMode === "hide" ) ) ) {
    14241424                    el.show();
    14251425                }
     
    15991599
    16001600function parseClip( str, element ) {
    1601         var outerWidth = element.outerWidth(),
    1602             outerHeight = element.outerHeight(),
    1603             clipRegex = /^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/,
    1604             values = clipRegex.exec( str ) || [ "", 0, outerWidth, outerHeight, 0 ];
    1605 
    1606         return {
    1607             top: parseFloat( values[ 1 ] ) || 0,
    1608             right: values[ 2 ] === "auto" ? outerWidth : parseFloat( values[ 2 ] ),
    1609             bottom: values[ 3 ] === "auto" ? outerHeight : parseFloat( values[ 3 ] ),
    1610             left: parseFloat( values[ 4 ] ) || 0
    1611         };
     1601    var outerWidth = element.outerWidth(),
     1602        outerHeight = element.outerHeight(),
     1603        clipRegex = /^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/,
     1604        values = clipRegex.exec( str ) || [ "", 0, outerWidth, outerHeight, 0 ];
     1605
     1606    return {
     1607        top: parseFloat( values[ 1 ] ) || 0,
     1608        right: values[ 2 ] === "auto" ? outerWidth : parseFloat( values[ 2 ] ),
     1609        bottom: values[ 3 ] === "auto" ? outerHeight : parseFloat( values[ 3 ] ),
     1610        left: parseFloat( values[ 4 ] ) || 0
     1611    };
    16121612}
    16131613
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/menu.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Menu 1.13.0
     2 * jQuery UI Menu 1.13.1
    33 * http://jqueryui.com
    44 *
     
    3636
    3737return $.widget( "ui.menu", {
    38     version: "1.13.0",
     38    version: "1.13.1",
    3939    defaultElement: "<ul>",
    4040    delay: 300,
     
    9696                        this.expand( event );
    9797                    } else if ( !this.element.is( ":focus" ) &&
    98                             active.closest( ".ui-menu" ).length ) {
     98                        active.closest( ".ui-menu" ).length ) {
    9999
    100100                        // Redirect focus to the menu
     
    163163        // If the mouse didn't actually move, but the page was scrolled, ignore the event (#9356)
    164164        if ( event.clientX === this.lastMousePosition.x &&
    165                 event.clientY === this.lastMousePosition.y ) {
     165            event.clientY === this.lastMousePosition.y ) {
    166166            return;
    167167        }
     
    203203            .removeAttr( "aria-activedescendant" )
    204204            .find( ".ui-menu" ).addBack()
    205                 .removeAttr( "role aria-labelledby aria-expanded aria-hidden aria-disabled " +
    206                     "tabIndex" )
    207                 .removeUniqueId()
    208                 .show();
     205            .removeAttr( "role aria-labelledby aria-expanded aria-hidden aria-disabled " +
     206                "tabIndex" )
     207            .removeUniqueId()
     208            .show();
    209209
    210210        submenus.children().each( function() {
     
    221221
    222222        switch ( event.keyCode ) {
    223         case $.ui.keyCode.PAGE_UP:
    224             this.previousPage( event );
    225             break;
    226         case $.ui.keyCode.PAGE_DOWN:
    227             this.nextPage( event );
    228             break;
    229         case $.ui.keyCode.HOME:
    230             this._move( "first", "first", event );
    231             break;
    232         case $.ui.keyCode.END:
    233             this._move( "last", "last", event );
    234             break;
    235         case $.ui.keyCode.UP:
    236             this.previous( event );
    237             break;
    238         case $.ui.keyCode.DOWN:
    239             this.next( event );
    240             break;
    241         case $.ui.keyCode.LEFT:
    242             this.collapse( event );
    243             break;
    244         case $.ui.keyCode.RIGHT:
    245             if ( this.active && !this.active.is( ".ui-state-disabled" ) ) {
    246                 this.expand( event );
    247             }
    248             break;
    249         case $.ui.keyCode.ENTER:
    250         case $.ui.keyCode.SPACE:
    251             this._activate( event );
    252             break;
    253         case $.ui.keyCode.ESCAPE:
    254             this.collapse( event );
    255             break;
    256         default:
    257             preventDefault = false;
    258             prev = this.previousFilter || "";
    259             skip = false;
    260 
    261             // Support number pad values
    262             character = event.keyCode >= 96 && event.keyCode <= 105 ?
    263                 ( event.keyCode - 96 ).toString() : String.fromCharCode( event.keyCode );
    264 
    265             clearTimeout( this.filterTimer );
    266 
    267             if ( character === prev ) {
    268                 skip = true;
    269             } else {
    270                 character = prev + character;
    271             }
    272 
    273             match = this._filterMenuItems( character );
    274             match = skip && match.index( this.active.next() ) !== -1 ?
    275                 this.active.nextAll( ".ui-menu-item" ) :
    276                 match;
    277 
    278             // If no matches on the current filter, reset to the last character pressed
    279             // to move down the menu to the first item that starts with that character
    280             if ( !match.length ) {
    281                 character = String.fromCharCode( event.keyCode );
     223            case $.ui.keyCode.PAGE_UP:
     224                this.previousPage( event );
     225                break;
     226            case $.ui.keyCode.PAGE_DOWN:
     227                this.nextPage( event );
     228                break;
     229            case $.ui.keyCode.HOME:
     230                this._move( "first", "first", event );
     231                break;
     232            case $.ui.keyCode.END:
     233                this._move( "last", "last", event );
     234                break;
     235            case $.ui.keyCode.UP:
     236                this.previous( event );
     237                break;
     238            case $.ui.keyCode.DOWN:
     239                this.next( event );
     240                break;
     241            case $.ui.keyCode.LEFT:
     242                this.collapse( event );
     243                break;
     244            case $.ui.keyCode.RIGHT:
     245                if ( this.active && !this.active.is( ".ui-state-disabled" ) ) {
     246                    this.expand( event );
     247                }
     248                break;
     249            case $.ui.keyCode.ENTER:
     250            case $.ui.keyCode.SPACE:
     251                this._activate( event );
     252                break;
     253            case $.ui.keyCode.ESCAPE:
     254                this.collapse( event );
     255                break;
     256            default:
     257                preventDefault = false;
     258                prev = this.previousFilter || "";
     259                skip = false;
     260
     261                // Support number pad values
     262                character = event.keyCode >= 96 && event.keyCode <= 105 ?
     263                    ( event.keyCode - 96 ).toString() : String.fromCharCode( event.keyCode );
     264
     265                clearTimeout( this.filterTimer );
     266
     267                if ( character === prev ) {
     268                    skip = true;
     269                } else {
     270                    character = prev + character;
     271                }
     272
    282273                match = this._filterMenuItems( character );
    283             }
    284 
    285             if ( match.length ) {
    286                 this.focus( event, match );
    287                 this.previousFilter = character;
    288                 this.filterTimer = this._delay( function() {
     274                match = skip && match.index( this.active.next() ) !== -1 ?
     275                    this.active.nextAll( ".ui-menu-item" ) :
     276                    match;
     277
     278                // If no matches on the current filter, reset to the last character pressed
     279                // to move down the menu to the first item that starts with that character
     280                if ( !match.length ) {
     281                    character = String.fromCharCode( event.keyCode );
     282                    match = this._filterMenuItems( character );
     283                }
     284
     285                if ( match.length ) {
     286                    this.focus( event, match );
     287                    this.previousFilter = character;
     288                    this.filterTimer = this._delay( function() {
     289                        delete this.previousFilter;
     290                    }, 1000 );
     291                } else {
    289292                    delete this.previousFilter;
    290                 }, 1000 );
    291             } else {
    292                 delete this.previousFilter;
    293             }
     293                }
    294294        }
    295295
     
    354354        newWrappers = newItems.children()
    355355            .not( ".ui-menu" )
    356                 .uniqueId()
    357                 .attr( {
    358                     tabIndex: -1,
    359                     role: this._itemRole()
    360                 } );
     356            .uniqueId()
     357            .attr( {
     358                tabIndex: -1,
     359                role: this._itemRole()
     360            } );
    361361        this._addClass( newItems, "ui-menu-item" )
    362362            ._addClass( newWrappers, "ui-menu-item-wrapper" );
     
    414414        activeParent = this.active
    415415            .parent()
    416                 .closest( ".ui-menu-item" )
    417                     .children( ".ui-menu-item-wrapper" );
     416            .closest( ".ui-menu-item" )
     417            .children( ".ui-menu-item-wrapper" );
    418418        this._addClass( activeParent, null, "ui-state-active" );
    419419
     
    696696            .find( this.options.items )
    697697
    698                 // Only match on items, not dividers or other content (#10571)
    699                 .filter( ".ui-menu-item" )
    700                     .filter( function() {
    701                         return regex.test(
    702                             String.prototype.trim.call(
    703                                 $( this ).children( ".ui-menu-item-wrapper" ).text() ) );
    704                     } );
     698            // Only match on items, not dividers or other content (#10571)
     699            .filter( ".ui-menu-item" )
     700            .filter( function() {
     701                return regex.test(
     702                    String.prototype.trim.call(
     703                        $( this ).children( ".ui-menu-item-wrapper" ).text() ) );
     704            } );
    705705    }
    706706} );
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/mouse.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Mouse 1.13.0
     2 * jQuery UI Mouse 1.13.1
    33 * http://jqueryui.com
    44 *
     
    3737
    3838return $.widget( "ui.mouse", {
    39     version: "1.13.0",
     39    version: "1.13.1",
    4040    options: {
    4141        cancel: "input, textarea, button, select, option",
     
    147147            // IE mouseup check - mouseup happened when mouse was out of window
    148148            if ( $.ui.ie && ( !document.documentMode || document.documentMode < 9 ) &&
    149                     !event.button ) {
     149                !event.button ) {
    150150                return this._mouseUp( event );
    151151
    152             // Iframe mouseup check - mouseup occurred in another document
     152                // Iframe mouseup check - mouseup occurred in another document
    153153            } else if ( !event.which ) {
    154154
     
    157157                // during a drag (#14461)
    158158                if ( event.originalEvent.altKey || event.originalEvent.ctrlKey ||
    159                         event.originalEvent.metaKey || event.originalEvent.shiftKey ) {
     159                    event.originalEvent.metaKey || event.originalEvent.shiftKey ) {
    160160                    this.ignoreMissingWhich = true;
    161161                } else if ( !this.ignoreMissingWhich ) {
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/progressbar.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Progressbar 1.13.0
     2 * jQuery UI Progressbar 1.13.1
    33 * http://jqueryui.com
    44 *
     
    3838
    3939return $.widget( "ui.progressbar", {
    40     version: "1.13.0",
     40    version: "1.13.1",
    4141    options: {
    4242        classes: {
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/resizable.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Resizable 1.13.0
     2 * jQuery UI Resizable 1.13.1
    33 * http://jqueryui.com
    44 *
     
    3737
    3838$.widget( "ui.resizable", $.ui.mouse, {
    39     version: "1.13.0",
     39    version: "1.13.1",
    4040    widgetEventPrefix: "resize",
    4141    options: {
     
    229229
    230230        switch ( key ) {
    231         case "handles":
    232             this._removeHandles();
    233             this._setupHandles();
    234             break;
    235         case "aspectRatio":
    236             this._aspectRatio = !!value;
    237             break;
    238         default:
    239             break;
     231            case "handles":
     232                this._removeHandles();
     233                this._setupHandles();
     234                break;
     235            case "aspectRatio":
     236                this._aspectRatio = !!value;
     237                break;
     238            default:
     239                break;
    240240        }
    241241    },
     
    301301
    302302                if ( this.elementIsWrapper &&
    303                         this.originalElement[ 0 ]
    304                             .nodeName
    305                             .match( /^(textarea|input|select|button)$/i ) ) {
     303                    this.originalElement[ 0 ]
     304                        .nodeName
     305                        .match( /^(textarea|input|select|button)$/i ) ) {
    306306                    axis = $( this.handles[ i ], this.element );
    307307
     
    312312                    padPos = [ "padding",
    313313                        /ne|nw|n/.test( i ) ? "Top" :
    314                         /se|sw|s/.test( i ) ? "Bottom" :
    315                         /^e$/.test( i ) ? "Right" : "Left" ].join( "" );
     314                            /se|sw|s/.test( i ) ? "Bottom" :
     315                                /^e$/.test( i ) ? "Right" : "Left" ].join( "" );
    316316
    317317                    target.css( padPos, padWrapper );
     
    385385
    386386        this.size = this._helper ? {
    387                 width: this.helper.width(),
    388                 height: this.helper.height()
    389             } : {
    390                 width: el.width(),
    391                 height: el.height()
    392             };
     387            width: this.helper.width(),
     388            height: this.helper.height()
     389        } : {
     390            width: el.width(),
     391            height: el.height()
     392        };
    393393
    394394        this.originalSize = this._helper ? {
    395                 width: el.outerWidth(),
    396                 height: el.outerHeight()
    397             } : {
    398                 width: el.width(),
    399                 height: el.height()
    400             };
     395            width: el.outerWidth(),
     396            height: el.outerHeight()
     397        } : {
     398            width: el.width(),
     399            height: el.height()
     400        };
    401401
    402402        this.sizeDiff = {
     
    10641064            };
    10651065
    1066             $( o.alsoResize ).each( function() {
    1067                 var el = $( this ), start = $( this ).data( "ui-resizable-alsoresize" ), style = {},
    1068                     css = el.parents( ui.originalElement[ 0 ] ).length ?
    1069                             [ "width", "height" ] :
    1070                             [ "width", "height", "top", "left" ];
    1071 
    1072                 $.each( css, function( i, prop ) {
    1073                     var sum = ( start[ prop ] || 0 ) + ( delta[ prop ] || 0 );
    1074                     if ( sum && sum >= 0 ) {
    1075                         style[ prop ] = sum || null;
    1076                     }
    1077                 } );
    1078 
    1079                 el.css( style );
     1066        $( o.alsoResize ).each( function() {
     1067            var el = $( this ), start = $( this ).data( "ui-resizable-alsoresize" ), style = {},
     1068                css = el.parents( ui.originalElement[ 0 ] ).length ?
     1069                    [ "width", "height" ] :
     1070                    [ "width", "height", "top", "left" ];
     1071
     1072            $.each( css, function( i, prop ) {
     1073                var sum = ( start[ prop ] || 0 ) + ( delta[ prop ] || 0 );
     1074                if ( sum && sum >= 0 ) {
     1075                    style[ prop ] = sum || null;
     1076                }
    10801077            } );
     1078
     1079            el.css( style );
     1080        } );
    10811081    },
    10821082
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/selectable.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Selectable 1.13.0
     2 * jQuery UI Selectable 1.13.1
    33 * http://jqueryui.com
    44 *
     
    3535
    3636return $.widget( "ui.selectable", $.ui.mouse, {
    37     version: "1.13.0",
     37    version: "1.13.1",
    3838    options: {
    3939        appendTo: "body",
     
    211211            if ( options.tolerance === "touch" ) {
    212212                hit = ( !( offset.left > x2 || offset.right < x1 || offset.top > y2 ||
    213                     offset.bottom < y1 ) );
     213                    offset.bottom < y1 ) );
    214214            } else if ( options.tolerance === "fit" ) {
    215215                hit = ( offset.left > x1 && offset.right < x2 && offset.top > y1 &&
    216                     offset.bottom < y2 );
     216                    offset.bottom < y2 );
    217217            }
    218218
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/selectmenu.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Selectmenu 1.13.0
     2 * jQuery UI Selectmenu 1.13.1
    33 * http://jqueryui.com
    44 *
     
    3939
    4040return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
    41     version: "1.13.0",
     41    version: "1.13.1",
    4242    defaultElement: "<select>",
    4343    options: {
     
    228228        this.menuItems = this.menu.find( "li" )
    229229            .not( ".ui-selectmenu-optgroup" )
    230                 .find( ".ui-menu-item-wrapper" );
     230            .find( ".ui-menu-item-wrapper" );
    231231
    232232        this._rendered = true;
     
    404404            selection.addRange( this.range );
    405405
    406         // Support: IE8
     406            // Support: IE8
    407407        } else {
    408408            this.range.select();
     
    440440                }
    441441
    442             // Support: IE8
     442                // Support: IE8
    443443            } else {
    444444                this.range = document.selection.createRange();
     
    454454            var preventDefault = true;
    455455            switch ( event.keyCode ) {
    456             case $.ui.keyCode.TAB:
    457             case $.ui.keyCode.ESCAPE:
    458                 this.close( event );
    459                 preventDefault = false;
    460                 break;
    461             case $.ui.keyCode.ENTER:
    462                 if ( this.isOpen ) {
    463                     this._selectFocusedItem( event );
    464                 }
    465                 break;
    466             case $.ui.keyCode.UP:
    467                 if ( event.altKey ) {
    468                     this._toggle( event );
    469                 } else {
     456                case $.ui.keyCode.TAB:
     457                case $.ui.keyCode.ESCAPE:
     458                    this.close( event );
     459                    preventDefault = false;
     460                    break;
     461                case $.ui.keyCode.ENTER:
     462                    if ( this.isOpen ) {
     463                        this._selectFocusedItem( event );
     464                    }
     465                    break;
     466                case $.ui.keyCode.UP:
     467                    if ( event.altKey ) {
     468                        this._toggle( event );
     469                    } else {
     470                        this._move( "prev", event );
     471                    }
     472                    break;
     473                case $.ui.keyCode.DOWN:
     474                    if ( event.altKey ) {
     475                        this._toggle( event );
     476                    } else {
     477                        this._move( "next", event );
     478                    }
     479                    break;
     480                case $.ui.keyCode.SPACE:
     481                    if ( this.isOpen ) {
     482                        this._selectFocusedItem( event );
     483                    } else {
     484                        this._toggle( event );
     485                    }
     486                    break;
     487                case $.ui.keyCode.LEFT:
    470488                    this._move( "prev", event );
    471                 }
    472                 break;
    473             case $.ui.keyCode.DOWN:
    474                 if ( event.altKey ) {
    475                     this._toggle( event );
    476                 } else {
     489                    break;
     490                case $.ui.keyCode.RIGHT:
    477491                    this._move( "next", event );
    478                 }
    479                 break;
    480             case $.ui.keyCode.SPACE:
    481                 if ( this.isOpen ) {
    482                     this._selectFocusedItem( event );
    483                 } else {
    484                     this._toggle( event );
    485                 }
    486                 break;
    487             case $.ui.keyCode.LEFT:
    488                 this._move( "prev", event );
    489                 break;
    490             case $.ui.keyCode.RIGHT:
    491                 this._move( "next", event );
    492                 break;
    493             case $.ui.keyCode.HOME:
    494             case $.ui.keyCode.PAGE_UP:
    495                 this._move( "first", event );
    496                 break;
    497             case $.ui.keyCode.END:
    498             case $.ui.keyCode.PAGE_DOWN:
    499                 this._move( "last", event );
    500                 break;
    501             default:
    502                 this.menu.trigger( event );
    503                 preventDefault = false;
     492                    break;
     493                case $.ui.keyCode.HOME:
     494                case $.ui.keyCode.PAGE_UP:
     495                    this._move( "first", event );
     496                    break;
     497                case $.ui.keyCode.END:
     498                case $.ui.keyCode.PAGE_DOWN:
     499                    this._move( "last", event );
     500                    break;
     501                default:
     502                    this.menu.trigger( event );
     503                    preventDefault = false;
    504504            }
    505505
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/slider.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Slider 1.13.0
     2 * jQuery UI Slider 1.13.1
    33 * http://jqueryui.com
    44 *
     
    3737
    3838return $.widget( "ui.slider", $.ui.mouse, {
    39     version: "1.13.0",
     39    version: "1.13.1",
    4040    widgetEventPrefix: "slide",
    4141
     
    643643            valueMax = this._valueMax();
    644644            valPercent = ( valueMax !== valueMin ) ?
    645                     ( value - valueMin ) / ( valueMax - valueMin ) * 100 :
    646                     0;
     645                ( value - valueMin ) / ( valueMax - valueMin ) * 100 :
     646                0;
    647647            _set[ this.orientation === "horizontal" ? "left" : "bottom" ] = valPercent + "%";
    648648            this.handle.stop( 1, 1 )[ animate ? "animate" : "css" ]( _set, o.animate );
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/sortable.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Sortable 1.13.0
     2 * jQuery UI Sortable 1.13.1
    33 * http://jqueryui.com
    44 *
     
    3535
    3636return $.widget( "ui.sortable", $.ui.mouse, {
    37     version: "1.13.0",
     37    version: "1.13.1",
    3838    widgetEventPrefix: "sort",
    3939    ready: false,
     
    197197        //Prepare the dragged items parent
    198198        this.appendTo = $( o.appendTo !== "parent" ?
    199                 o.appendTo :
    200                 this.currentItem.parent() );
     199            o.appendTo :
     200            this.currentItem.parent() );
    201201
    202202        //Create and append the visible helper
     
    300300        //Prepare scrolling
    301301        if ( this.scrollParent[ 0 ] !== this.document[ 0 ] &&
    302                 this.scrollParent[ 0 ].tagName !== "HTML" ) {
     302            this.scrollParent[ 0 ].tagName !== "HTML" ) {
    303303            this.overflowOffset = this.scrollParent.offset();
    304304        }
     
    357357
    358358        if ( this.scrollParent[ 0 ] !== this.document[ 0 ] &&
    359                 this.scrollParent[ 0 ].tagName !== "HTML" ) {
     359            this.scrollParent[ 0 ].tagName !== "HTML" ) {
    360360
    361361            if ( ( this.overflowOffset.top + this.scrollParent[ 0 ].offsetHeight ) -
    362                     event.pageY < o.scrollSensitivity ) {
     362                event.pageY < o.scrollSensitivity ) {
    363363                this.scrollParent[ 0 ].scrollTop =
    364364                    scrolled = this.scrollParent[ 0 ].scrollTop + o.scrollSpeed;
     
    369369
    370370            if ( ( this.overflowOffset.left + this.scrollParent[ 0 ].offsetWidth ) -
    371                     event.pageX < o.scrollSensitivity ) {
     371                event.pageX < o.scrollSensitivity ) {
    372372                this.scrollParent[ 0 ].scrollLeft = scrolled =
    373373                    this.scrollParent[ 0 ].scrollLeft + o.scrollSpeed;
     
    382382                scrolled = this.document.scrollTop( this.document.scrollTop() - o.scrollSpeed );
    383383            } else if ( this.window.height() - ( event.pageY - this.document.scrollTop() ) <
    384                     o.scrollSensitivity ) {
     384                o.scrollSensitivity ) {
    385385                scrolled = this.document.scrollTop( this.document.scrollTop() + o.scrollSpeed );
    386386            }
     
    391391                );
    392392            } else if ( this.window.width() - ( event.pageX - this.document.scrollLeft() ) <
    393                     o.scrollSensitivity ) {
     393                o.scrollSensitivity ) {
    394394                scrolled = this.document.scrollLeft(
    395395                    this.document.scrollLeft() + o.scrollSpeed
     
    418418        }
    419419
     420        //Do scrolling
     421        if ( o.scroll ) {
     422            if ( this._scroll( event ) !== false ) {
     423
     424                //Update item positions used in position checks
     425                this._refreshItemPositions( true );
     426
     427                if ( $.ui.ddmanager && !o.dropBehaviour ) {
     428                    $.ui.ddmanager.prepareOffsets( this, event );
     429                }
     430            }
     431        }
     432
     433        this.dragDirection = {
     434            vertical: this._getDragVerticalDirection(),
     435            horizontal: this._getDragHorizontalDirection()
     436        };
     437
     438        //Rearrange
     439        for ( i = this.items.length - 1; i >= 0; i-- ) {
     440
     441            //Cache variables and intersection, continue if no intersection
     442            item = this.items[ i ];
     443            itemElement = item.item[ 0 ];
     444            intersection = this._intersectsWithPointer( item );
     445            if ( !intersection ) {
     446                continue;
     447            }
     448
     449            // Only put the placeholder inside the current Container, skip all
     450            // items from other containers. This works because when moving
     451            // an item from one container to another the
     452            // currentContainer is switched before the placeholder is moved.
     453            //
     454            // Without this, moving items in "sub-sortables" can cause
     455            // the placeholder to jitter between the outer and inner container.
     456            if ( item.instance !== this.currentContainer ) {
     457                continue;
     458            }
     459
     460            // Cannot intersect with itself
     461            // no useless actions that have been done before
     462            // no action if the item moved is the parent of the item checked
     463            if ( itemElement !== this.currentItem[ 0 ] &&
     464                this.placeholder[ intersection === 1 ?
     465                    "next" : "prev" ]()[ 0 ] !== itemElement &&
     466                !$.contains( this.placeholder[ 0 ], itemElement ) &&
     467                ( this.options.type === "semi-dynamic" ?
     468                        !$.contains( this.element[ 0 ], itemElement ) :
     469                        true
     470                )
     471            ) {
     472
     473                this.direction = intersection === 1 ? "down" : "up";
     474
     475                if ( this.options.tolerance === "pointer" ||
     476                    this._intersectsWithSides( item ) ) {
     477                    this._rearrange( event, item );
     478                } else {
     479                    break;
     480                }
     481
     482                this._trigger( "change", event, this._uiHash() );
     483                break;
     484            }
     485        }
     486
    420487        //Post events to containers
    421488        this._contactContainers( event );
    422 
    423         if ( this.innermostContainer !== null ) {
    424 
    425             //Do scrolling
    426             if ( o.scroll ) {
    427                 if ( this._scroll( event ) !== false ) {
    428 
    429                     //Update item positions used in position checks
    430                     this._refreshItemPositions( true );
    431 
    432                     if ( $.ui.ddmanager && !o.dropBehaviour ) {
    433                         $.ui.ddmanager.prepareOffsets( this, event );
    434                     }
    435                 }
    436             }
    437 
    438             this.dragDirection = {
    439                 vertical: this._getDragVerticalDirection(),
    440                 horizontal: this._getDragHorizontalDirection()
    441             };
    442 
    443             //Rearrange
    444             for ( i = this.items.length - 1; i >= 0; i-- ) {
    445 
    446                 //Cache variables and intersection, continue if no intersection
    447                 item = this.items[ i ];
    448                 itemElement = item.item[ 0 ];
    449                 intersection = this._intersectsWithPointer( item );
    450                 if ( !intersection ) {
    451                     continue;
    452                 }
    453 
    454                 // Only put the placeholder inside the current Container, skip all
    455                 // items from other containers. This works because when moving
    456                 // an item from one container to another the
    457                 // currentContainer is switched before the placeholder is moved.
    458                 //
    459                 // Without this, moving items in "sub-sortables" can cause
    460                 // the placeholder to jitter between the outer and inner container.
    461                 if ( item.instance !== this.currentContainer ) {
    462                     continue;
    463                 }
    464 
    465                 // Cannot intersect with itself
    466                 // no useless actions that have been done before
    467                 // no action if the item moved is the parent of the item checked
    468                 if ( itemElement !== this.currentItem[ 0 ] &&
    469                     this.placeholder[ intersection === 1 ?
    470                     "next" : "prev" ]()[ 0 ] !== itemElement &&
    471                     !$.contains( this.placeholder[ 0 ], itemElement ) &&
    472                     ( this.options.type === "semi-dynamic" ?
    473                         !$.contains( this.element[ 0 ], itemElement ) :
    474                         true
    475                     )
    476                 ) {
    477 
    478                     this.direction = intersection === 1 ? "down" : "up";
    479 
    480                     if ( this.options.tolerance === "pointer" ||
    481                             this._intersectsWithSides( item ) ) {
    482                         this._rearrange( event, item );
    483                     } else {
    484                         break;
    485                     }
    486 
    487                     this._trigger( "change", event, this._uiHash() );
    488                     break;
    489                 }
    490             }
    491         }
    492489
    493490        //Interconnect with droppables
     
    524521                animation.left = cur.left - this.offset.parent.left - this.margins.left +
    525522                    ( this.offsetParent[ 0 ] === this.document[ 0 ].body ?
    526                         0 :
    527                         this.offsetParent[ 0 ].scrollLeft
     523                            0 :
     524                            this.offsetParent[ 0 ].scrollLeft
    528525                    );
    529526            }
     
    531528                animation.top = cur.top - this.offset.parent.top - this.margins.top +
    532529                    ( this.offsetParent[ 0 ] === this.document[ 0 ].body ?
    533                         0 :
    534                         this.offsetParent[ 0 ].scrollTop
     530                            0 :
     531                            this.offsetParent[ 0 ].scrollTop
    535532                    );
    536533            }
     
    583580            }
    584581            if ( this.options.helper !== "original" && this.helper &&
    585                     this.helper[ 0 ].parentNode ) {
     582                this.helper[ 0 ].parentNode ) {
    586583                this.helper.remove();
    587584            }
     
    859856            //We ignore calculating positions of all connected containers when we're not over them
    860857            if ( this.currentContainer && item.instance !== this.currentContainer &&
    861                     item.item[ 0 ] !== this.currentItem[ 0 ] ) {
     858                item.item[ 0 ] !== this.currentItem[ 0 ] ) {
    862859                continue;
    863860            }
     
    885882            false;
    886883
    887         if ( this.innermostContainer !== null ) {
    888             this._refreshItemPositions( fast );
    889         }
     884        // This has to be redone because due to the item being moved out/into the offsetParent,
     885        // the offsetParent's position will change
     886        if ( this.offsetParent && this.helper ) {
     887            this.offset.parent = this._getParentOffset();
     888        }
     889
     890        this._refreshItemPositions( fast );
    890891
    891892        var i, p;
     
    922923
    923924                    that._addClass( element, "ui-sortable-placeholder",
    924                             className || that.currentItem[ 0 ].className )
     925                        className || that.currentItem[ 0 ].className )
    925926                        ._removeClass( element, "ui-sortable-helper" );
    926927
     
    960961                    // is true.
    961962                    if ( !p.height() || ( o.forcePlaceholderSize &&
    962                             ( nodeName === "tbody" || nodeName === "tr" ) ) ) {
     963                        ( nodeName === "tbody" || nodeName === "tr" ) ) ) {
    963964                        p.height(
    964965                            that.currentItem.innerHeight() -
     
    10151016                // If we've already found a container and it's more "inner" than this, then continue
    10161017                if ( innermostContainer &&
    1017                         $.contains(
    1018                             this.containers[ i ].element[ 0 ],
    1019                             innermostContainer.element[ 0 ] ) ) {
     1018                    $.contains(
     1019                        this.containers[ i ].element[ 0 ],
     1020                        innermostContainer.element[ 0 ] ) ) {
    10201021                    continue;
    10211022                }
     
    10341035
    10351036        }
    1036 
    1037         this.innermostContainer = innermostContainer;
    10381037
    10391038        // If no intersecting containers found, return
     
    10611060            for ( j = this.items.length - 1; j >= 0; j-- ) {
    10621061                if ( !$.contains(
    1063                         this.containers[ innermostIndex ].element[ 0 ], this.items[ j ].item[ 0 ] )
     1062                    this.containers[ innermostIndex ].element[ 0 ], this.items[ j ].item[ 0 ] )
    10641063                ) {
    10651064                    continue;
     
    11121111            //Update overflowOffset
    11131112            if ( this.scrollParent[ 0 ] !== this.document[ 0 ] &&
    1114                     this.scrollParent[ 0 ].tagName !== "HTML" ) {
     1113                this.scrollParent[ 0 ].tagName !== "HTML" ) {
    11151114                this.overflowOffset = this.scrollParent.offset();
    11161115            }
     
    11901189        // offset of the parent, and never recalculated upon drag
    11911190        if ( this.cssPosition === "absolute" && this.scrollParent[ 0 ] !== this.document[ 0 ] &&
    1192                 $.contains( this.scrollParent[ 0 ], this.offsetParent[ 0 ] ) ) {
     1191            $.contains( this.scrollParent[ 0 ], this.offsetParent[ 0 ] ) ) {
    11931192            po.left += this.scrollParent.scrollLeft();
    11941193            po.top += this.scrollParent.scrollTop();
     
    11981197        // information with an ugly IE fix
    11991198        if ( this.offsetParent[ 0 ] === this.document[ 0 ].body ||
    1200                 ( this.offsetParent[ 0 ].tagName &&
     1199            ( this.offsetParent[ 0 ].tagName &&
    12011200                this.offsetParent[ 0 ].tagName.toLowerCase() === "html" && $.ui.ie ) ) {
    12021201            po = { top: 0, left: 0 };
     
    12551254                    this.window.width() - this.helperProportions.width - this.margins.left,
    12561255                ( o.containment === "document" ?
    1257                     ( this.document.height() || document.body.parentNode.scrollHeight ) :
    1258                     this.window.height() || this.document[ 0 ].body.parentNode.scrollHeight
     1256                        ( this.document.height() || document.body.parentNode.scrollHeight ) :
     1257                        this.window.height() || this.document[ 0 ].body.parentNode.scrollHeight
    12591258                ) - this.helperProportions.height - this.margins.top
    12601259            ];
     
    12681267            this.containment = [
    12691268                co.left + ( parseInt( $( ce ).css( "borderLeftWidth" ), 10 ) || 0 ) +
    1270                     ( parseInt( $( ce ).css( "paddingLeft" ), 10 ) || 0 ) - this.margins.left,
     1269                ( parseInt( $( ce ).css( "paddingLeft" ), 10 ) || 0 ) - this.margins.left,
    12711270                co.top + ( parseInt( $( ce ).css( "borderTopWidth" ), 10 ) || 0 ) +
    1272                     ( parseInt( $( ce ).css( "paddingTop" ), 10 ) || 0 ) - this.margins.top,
     1271                ( parseInt( $( ce ).css( "paddingTop" ), 10 ) || 0 ) - this.margins.top,
    12731272                co.left + ( over ? Math.max( ce.scrollWidth, ce.offsetWidth ) : ce.offsetWidth ) -
    1274                     ( parseInt( $( ce ).css( "borderLeftWidth" ), 10 ) || 0 ) -
    1275                     ( parseInt( $( ce ).css( "paddingRight" ), 10 ) || 0 ) -
    1276                     this.helperProportions.width - this.margins.left,
     1273                ( parseInt( $( ce ).css( "borderLeftWidth" ), 10 ) || 0 ) -
     1274                ( parseInt( $( ce ).css( "paddingRight" ), 10 ) || 0 ) -
     1275                this.helperProportions.width - this.margins.left,
    12771276                co.top + ( over ? Math.max( ce.scrollHeight, ce.offsetHeight ) : ce.offsetHeight ) -
    1278                     ( parseInt( $( ce ).css( "borderTopWidth" ), 10 ) || 0 ) -
    1279                     ( parseInt( $( ce ).css( "paddingBottom" ), 10 ) || 0 ) -
    1280                     this.helperProportions.height - this.margins.top
     1277                ( parseInt( $( ce ).css( "borderTopWidth" ), 10 ) || 0 ) -
     1278                ( parseInt( $( ce ).css( "paddingBottom" ), 10 ) || 0 ) -
     1279                this.helperProportions.height - this.margins.top
    12811280            ];
    12821281        }
     
    12911290        var mod = d === "absolute" ? 1 : -1,
    12921291            scroll = this.cssPosition === "absolute" &&
    1293                 !( this.scrollParent[ 0 ] !== this.document[ 0 ] &&
     1292            !( this.scrollParent[ 0 ] !== this.document[ 0 ] &&
    12941293                $.contains( this.scrollParent[ 0 ], this.offsetParent[ 0 ] ) ) ?
    1295                     this.offsetParent :
    1296                     this.scrollParent,
     1294                this.offsetParent :
     1295                this.scrollParent,
    12971296            scrollIsRootNode = ( /(html|body)/i ).test( scroll[ 0 ].tagName );
    12981297
     
    13241323                ( ( this.cssPosition === "fixed" ?
    13251324                    -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 :
    1326                     scroll.scrollLeft() ) * mod )
     1325                        scroll.scrollLeft() ) * mod )
    13271326            )
    13281327        };
     
    13371336            pageY = event.pageY,
    13381337            scroll = this.cssPosition === "absolute" &&
    1339                 !( this.scrollParent[ 0 ] !== this.document[ 0 ] &&
     1338            !( this.scrollParent[ 0 ] !== this.document[ 0 ] &&
    13401339                $.contains( this.scrollParent[ 0 ], this.offsetParent[ 0 ] ) ) ?
    1341                     this.offsetParent :
    1342                     this.scrollParent,
    1343                 scrollIsRootNode = ( /(html|body)/i ).test( scroll[ 0 ].tagName );
     1340                this.offsetParent :
     1341                this.scrollParent,
     1342            scrollIsRootNode = ( /(html|body)/i ).test( scroll[ 0 ].tagName );
    13441343
    13451344        // This is another very weird special case that only happens for relative elements:
     
    13481347        // we have to refresh the relative offset during the scroll so there are no jumps
    13491348        if ( this.cssPosition === "relative" && !( this.scrollParent[ 0 ] !== this.document[ 0 ] &&
    1350                 this.scrollParent[ 0 ] !== this.offsetParent[ 0 ] ) ) {
     1349            this.scrollParent[ 0 ] !== this.offsetParent[ 0 ] ) ) {
    13511350            this.offset.relative = this._getRelativeOffset();
    13521351        }
     
    13801379                    ( ( top - this.offset.click.top >= this.containment[ 1 ] &&
    13811380                        top - this.offset.click.top <= this.containment[ 3 ] ) ?
    1382                             top :
    1383                             ( ( top - this.offset.click.top >= this.containment[ 1 ] ) ?
    1384                                 top - o.grid[ 1 ] : top + o.grid[ 1 ] ) ) :
    1385                                 top;
     1381                        top :
     1382                        ( ( top - this.offset.click.top >= this.containment[ 1 ] ) ?
     1383                            top - o.grid[ 1 ] : top + o.grid[ 1 ] ) ) :
     1384                    top;
    13861385
    13871386                left = this.originalPageX + Math.round( ( pageX - this.originalPageX ) /
     
    13901389                    ( ( left - this.offset.click.left >= this.containment[ 0 ] &&
    13911390                        left - this.offset.click.left <= this.containment[ 2 ] ) ?
    1392                             left :
    1393                             ( ( left - this.offset.click.left >= this.containment[ 0 ] ) ?
    1394                                 left - o.grid[ 0 ] : left + o.grid[ 0 ] ) ) :
    1395                                 left;
     1391                        left :
     1392                        ( ( left - this.offset.click.left >= this.containment[ 0 ] ) ?
     1393                            left - o.grid[ 0 ] : left + o.grid[ 0 ] ) ) :
     1394                    left;
    13961395            }
    13971396
     
    15001499        }
    15011500        if ( ( this.fromOutside ||
    1502                 this.domPosition.prev !==
    1503                 this.currentItem.prev().not( ".ui-sortable-helper" )[ 0 ] ||
    1504                 this.domPosition.parent !== this.currentItem.parent()[ 0 ] ) && !noPropagation ) {
     1501            this.domPosition.prev !==
     1502            this.currentItem.prev().not( ".ui-sortable-helper" )[ 0 ] ||
     1503            this.domPosition.parent !== this.currentItem.parent()[ 0 ] ) && !noPropagation ) {
    15051504
    15061505            // Trigger update callback if the DOM position has changed
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/spinner.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Spinner 1.13.0
     2 * jQuery UI Spinner 1.13.1
    33 * http://jqueryui.com
    44 *
     
    4848
    4949$.widget( "ui.spinner", {
    50     version: "1.13.0",
     50    version: "1.13.1",
    5151    defaultElement: "<input>",
    5252    widgetEventPrefix: "spin",
     
    235235            .parent()
    236236
    237                 // Add buttons
    238                 .append(
    239                     "<a></a><a></a>"
    240                 );
     237            // Add buttons
     238            .append(
     239                "<a></a><a></a>"
     240            );
    241241    },
    242242
     
    276276        // unless the wrapper has an explicit height
    277277        if ( this.buttons.height() > Math.ceil( this.uiSpinner.height() * 0.5 ) &&
    278                 this.uiSpinner.height() > 0 ) {
     278            this.uiSpinner.height() > 0 ) {
    279279            this.uiSpinner.height( this.uiSpinner.height() );
    280280        }
     
    286286
    287287        switch ( event.keyCode ) {
    288         case keyCode.UP:
    289             this._repeat( null, 1, event );
    290             return true;
    291         case keyCode.DOWN:
    292             this._repeat( null, -1, event );
    293             return true;
    294         case keyCode.PAGE_UP:
    295             this._repeat( null, options.page, event );
    296             return true;
    297         case keyCode.PAGE_DOWN:
    298             this._repeat( null, -options.page, event );
    299             return true;
     288            case keyCode.UP:
     289                this._repeat( null, 1, event );
     290                return true;
     291            case keyCode.DOWN:
     292                this._repeat( null, -1, event );
     293                return true;
     294            case keyCode.PAGE_UP:
     295                this._repeat( null, options.page, event );
     296                return true;
     297            case keyCode.PAGE_DOWN:
     298                this._repeat( null, -options.page, event );
     299                return true;
    300300        }
    301301
     
    562562                .parent()
    563563
    564                     // Add buttons
    565                     .append( this._buttonHtml() );
     564                // Add buttons
     565                .append( this._buttonHtml() );
    566566        },
    567567        _uiSpinnerHtml: function() {
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/tabs.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Tabs 1.13.0
     2 * jQuery UI Tabs 1.13.1
    33 * http://jqueryui.com
    44 *
     
    3636
    3737$.widget( "ui.tabs", {
    38     version: "1.13.0",
     38    version: "1.13.1",
    3939    delay: 300,
    4040    options: {
     
    177177
    178178        switch ( event.keyCode ) {
    179         case $.ui.keyCode.RIGHT:
    180         case $.ui.keyCode.DOWN:
    181             selectedIndex++;
    182             break;
    183         case $.ui.keyCode.UP:
    184         case $.ui.keyCode.LEFT:
    185             goingForward = false;
    186             selectedIndex--;
    187             break;
    188         case $.ui.keyCode.END:
    189             selectedIndex = this.anchors.length - 1;
    190             break;
    191         case $.ui.keyCode.HOME:
    192             selectedIndex = 0;
    193             break;
    194         case $.ui.keyCode.SPACE:
    195 
    196             // Activate only, no collapsing
    197             event.preventDefault();
    198             clearTimeout( this.activating );
    199             this._activate( selectedIndex );
    200             return;
    201         case $.ui.keyCode.ENTER:
    202 
    203             // Toggle (cancel delayed activation, allow collapsing)
    204             event.preventDefault();
    205             clearTimeout( this.activating );
    206 
    207             // Determine if we should collapse or activate
    208             this._activate( selectedIndex === this.options.active ? false : selectedIndex );
    209             return;
    210         default:
    211             return;
     179            case $.ui.keyCode.RIGHT:
     180            case $.ui.keyCode.DOWN:
     181                selectedIndex++;
     182                break;
     183            case $.ui.keyCode.UP:
     184            case $.ui.keyCode.LEFT:
     185                goingForward = false;
     186                selectedIndex--;
     187                break;
     188            case $.ui.keyCode.END:
     189                selectedIndex = this.anchors.length - 1;
     190                break;
     191            case $.ui.keyCode.HOME:
     192                selectedIndex = 0;
     193                break;
     194            case $.ui.keyCode.SPACE:
     195
     196                // Activate only, no collapsing
     197                event.preventDefault();
     198                clearTimeout( this.activating );
     199                this._activate( selectedIndex );
     200                return;
     201            case $.ui.keyCode.ENTER:
     202
     203                // Toggle (cancel delayed activation, allow collapsing)
     204                event.preventDefault();
     205                clearTimeout( this.activating );
     206
     207                // Determine if we should collapse or activate
     208                this._activate( selectedIndex === this.options.active ? false : selectedIndex );
     209                return;
     210            default:
     211                return;
    212212        }
    213213
     
    331331            this.active = $();
    332332
    333         // was active, but active tab is gone
     333            // was active, but active tab is gone
    334334        } else if ( this.active.length && !$.contains( this.tablist[ 0 ], this.active[ 0 ] ) ) {
    335335
     
    339339                this.active = $();
    340340
    341             // activate previous tab
     341                // activate previous tab
    342342            } else {
    343343                this._activate( this._findNextTab( Math.max( 0, options.active - 1 ), false ) );
    344344            }
    345345
    346         // was active, active tab still exists
     346            // was active, active tab still exists
    347347        } else {
    348348
     
    448448                panel = that.element.find( that._sanitizeSelector( selector ) );
    449449
    450             // remote tab
     450                // remote tab
    451451            } else {
    452452
     
    606606        if ( tab.hasClass( "ui-state-disabled" ) ||
    607607
    608                 // tab is already loading
    609                 tab.hasClass( "ui-tabs-loading" ) ||
    610 
    611                 // can't switch durning an animation
    612                 this.running ||
    613 
    614                 // click on active header, but not collapsible
    615                 ( clickedIsActive && !options.collapsible ) ||
    616 
    617                 // allow canceling activation
    618                 ( this._trigger( "beforeActivate", event, eventData ) === false ) ) {
     608            // tab is already loading
     609            tab.hasClass( "ui-tabs-loading" ) ||
     610
     611            // can't switch durning an animation
     612            this.running ||
     613
     614            // click on active header, but not collapsible
     615            ( clickedIsActive && !options.collapsible ) ||
     616
     617            // allow canceling activation
     618            ( this._trigger( "beforeActivate", event, eventData ) === false ) ) {
    619619            return;
    620620        }
  • branches/5.9/src/js/_enqueues/vendor/jquery/ui/tooltip.js

    r51897 r52665  
    11/*!
    2  * jQuery UI Tooltip 1.13.0
     2 * jQuery UI Tooltip 1.13.1
    33 * http://jqueryui.com
    44 *
     
    3636
    3737$.widget( "ui.tooltip", {
    38     version: "1.13.0",
     38    version: "1.13.1",
    3939    options: {
    4040        classes: {
     
    218218
    219219        if ( typeof contentOption === "string" || contentOption.nodeType ||
    220                 contentOption.jquery ) {
     220            contentOption.jquery ) {
    221221            return this._open( event, target, contentOption );
    222222        }
     
    349349        if ( target[ 0 ] !== this.element[ 0 ] ) {
    350350            events.remove = function() {
    351                 this._removeTooltip( this._find( target ).tooltip );
     351                var targetElement = this._find( target );
     352                if ( targetElement ) {
     353                    this._removeTooltip( targetElement.tooltip );
     354                }
    352355            };
    353356        }
  • branches/5.9/src/wp-includes/script-loader.php

    r52548 r52665  
    766766    // the source files were flattened and included with some modifications for AMD loading.
    767767    // A notable change is that 'jquery-ui-core' now contains 'jquery-ui-position' and 'jquery-ui-widget'.
    768     $scripts->add( 'jquery-ui-core', "/wp-includes/js/jquery/ui/core$suffix.js", array( 'jquery' ), '1.13.0', 1 );
    769     $scripts->add( 'jquery-effects-core', "/wp-includes/js/jquery/ui/effect$suffix.js", array( 'jquery' ), '1.13.0', 1 );
    770 
    771     $scripts->add( 'jquery-effects-blind', "/wp-includes/js/jquery/ui/effect-blind$suffix.js", array( 'jquery-effects-core' ), '1.13.0', 1 );
    772     $scripts->add( 'jquery-effects-bounce', "/wp-includes/js/jquery/ui/effect-bounce$suffix.js", array( 'jquery-effects-core' ), '1.13.0', 1 );
    773     $scripts->add( 'jquery-effects-clip', "/wp-includes/js/jquery/ui/effect-clip$suffix.js", array( 'jquery-effects-core' ), '1.13.0', 1 );
    774     $scripts->add( 'jquery-effects-drop', "/wp-includes/js/jquery/ui/effect-drop$suffix.js", array( 'jquery-effects-core' ), '1.13.0', 1 );
    775     $scripts->add( 'jquery-effects-explode', "/wp-includes/js/jquery/ui/effect-explode$suffix.js", array( 'jquery-effects-core' ), '1.13.0', 1 );
    776     $scripts->add( 'jquery-effects-fade', "/wp-includes/js/jquery/ui/effect-fade$suffix.js", array( 'jquery-effects-core' ), '1.13.0', 1 );
    777     $scripts->add( 'jquery-effects-fold', "/wp-includes/js/jquery/ui/effect-fold$suffix.js", array( 'jquery-effects-core' ), '1.13.0', 1 );
    778     $scripts->add( 'jquery-effects-highlight', "/wp-includes/js/jquery/ui/effect-highlight$suffix.js", array( 'jquery-effects-core' ), '1.13.0', 1 );
    779     $scripts->add( 'jquery-effects-puff', "/wp-includes/js/jquery/ui/effect-puff$suffix.js", array( 'jquery-effects-core', 'jquery-effects-scale' ), '1.13.0', 1 );
    780     $scripts->add( 'jquery-effects-pulsate', "/wp-includes/js/jquery/ui/effect-pulsate$suffix.js", array( 'jquery-effects-core' ), '1.13.0', 1 );
    781     $scripts->add( 'jquery-effects-scale', "/wp-includes/js/jquery/ui/effect-scale$suffix.js", array( 'jquery-effects-core', 'jquery-effects-size' ), '1.13.0', 1 );
    782     $scripts->add( 'jquery-effects-shake', "/wp-includes/js/jquery/ui/effect-shake$suffix.js", array( 'jquery-effects-core' ), '1.13.0', 1 );
    783     $scripts->add( 'jquery-effects-size', "/wp-includes/js/jquery/ui/effect-size$suffix.js", array( 'jquery-effects-core' ), '1.13.0', 1 );
    784     $scripts->add( 'jquery-effects-slide', "/wp-includes/js/jquery/ui/effect-slide$suffix.js", array( 'jquery-effects-core' ), '1.13.0', 1 );
    785     $scripts->add( 'jquery-effects-transfer', "/wp-includes/js/jquery/ui/effect-transfer$suffix.js", array( 'jquery-effects-core' ), '1.13.0', 1 );
     768    $scripts->add( 'jquery-ui-core', "/wp-includes/js/jquery/ui/core$suffix.js", array( 'jquery' ), '1.13.1', 1 );
     769    $scripts->add( 'jquery-effects-core', "/wp-includes/js/jquery/ui/effect$suffix.js", array( 'jquery' ), '1.13.1', 1 );
     770
     771    $scripts->add( 'jquery-effects-blind', "/wp-includes/js/jquery/ui/effect-blind$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 );
     772    $scripts->add( 'jquery-effects-bounce', "/wp-includes/js/jquery/ui/effect-bounce$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 );
     773    $scripts->add( 'jquery-effects-clip', "/wp-includes/js/jquery/ui/effect-clip$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 );
     774    $scripts->add( 'jquery-effects-drop', "/wp-includes/js/jquery/ui/effect-drop$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 );
     775    $scripts->add( 'jquery-effects-explode', "/wp-includes/js/jquery/ui/effect-explode$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 );
     776    $scripts->add( 'jquery-effects-fade', "/wp-includes/js/jquery/ui/effect-fade$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 );
     777    $scripts->add( 'jquery-effects-fold', "/wp-includes/js/jquery/ui/effect-fold$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 );
     778    $scripts->add( 'jquery-effects-highlight', "/wp-includes/js/jquery/ui/effect-highlight$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 );
     779    $scripts->add( 'jquery-effects-puff', "/wp-includes/js/jquery/ui/effect-puff$suffix.js", array( 'jquery-effects-core', 'jquery-effects-scale' ), '1.13.1', 1 );
     780    $scripts->add( 'jquery-effects-pulsate', "/wp-includes/js/jquery/ui/effect-pulsate$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 );
     781    $scripts->add( 'jquery-effects-scale', "/wp-includes/js/jquery/ui/effect-scale$suffix.js", array( 'jquery-effects-core', 'jquery-effects-size' ), '1.13.1', 1 );
     782    $scripts->add( 'jquery-effects-shake', "/wp-includes/js/jquery/ui/effect-shake$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 );
     783    $scripts->add( 'jquery-effects-size', "/wp-includes/js/jquery/ui/effect-size$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 );
     784    $scripts->add( 'jquery-effects-slide', "/wp-includes/js/jquery/ui/effect-slide$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 );
     785    $scripts->add( 'jquery-effects-transfer', "/wp-includes/js/jquery/ui/effect-transfer$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 );
    786786
    787787    // Widgets
    788     $scripts->add( 'jquery-ui-accordion', "/wp-includes/js/jquery/ui/accordion$suffix.js", array( 'jquery-ui-core' ), '1.13.0', 1 );
    789     $scripts->add( 'jquery-ui-autocomplete', "/wp-includes/js/jquery/ui/autocomplete$suffix.js", array( 'jquery-ui-menu', 'wp-a11y' ), '1.13.0', 1 );
    790     $scripts->add( 'jquery-ui-button', "/wp-includes/js/jquery/ui/button$suffix.js", array( 'jquery-ui-core', 'jquery-ui-controlgroup', 'jquery-ui-checkboxradio' ), '1.13.0', 1 );
    791     $scripts->add( 'jquery-ui-datepicker', "/wp-includes/js/jquery/ui/datepicker$suffix.js", array( 'jquery-ui-core' ), '1.13.0', 1 );
    792     $scripts->add( 'jquery-ui-dialog', "/wp-includes/js/jquery/ui/dialog$suffix.js", array( 'jquery-ui-resizable', 'jquery-ui-draggable', 'jquery-ui-button' ), '1.13.0', 1 );
    793     $scripts->add( 'jquery-ui-menu', "/wp-includes/js/jquery/ui/menu$suffix.js", array( 'jquery-ui-core' ), '1.13.0', 1 );
    794     $scripts->add( 'jquery-ui-mouse', "/wp-includes/js/jquery/ui/mouse$suffix.js", array( 'jquery-ui-core' ), '1.13.0', 1 );
    795     $scripts->add( 'jquery-ui-progressbar', "/wp-includes/js/jquery/ui/progressbar$suffix.js", array( 'jquery-ui-core' ), '1.13.0', 1 );
    796     $scripts->add( 'jquery-ui-selectmenu', "/wp-includes/js/jquery/ui/selectmenu$suffix.js", array( 'jquery-ui-menu' ), '1.13.0', 1 );
    797     $scripts->add( 'jquery-ui-slider', "/wp-includes/js/jquery/ui/slider$suffix.js", array( 'jquery-ui-mouse' ), '1.13.0', 1 );
    798     $scripts->add( 'jquery-ui-spinner', "/wp-includes/js/jquery/ui/spinner$suffix.js", array( 'jquery-ui-button' ), '1.13.0', 1 );
    799     $scripts->add( 'jquery-ui-tabs', "/wp-includes/js/jquery/ui/tabs$suffix.js", array( 'jquery-ui-core' ), '1.13.0', 1 );
    800     $scripts->add( 'jquery-ui-tooltip', "/wp-includes/js/jquery/ui/tooltip$suffix.js", array( 'jquery-ui-core' ), '1.13.0', 1 );
     788    $scripts->add( 'jquery-ui-accordion', "/wp-includes/js/jquery/ui/accordion$suffix.js", array( 'jquery-ui-core' ), '1.13.1', 1 );
     789    $scripts->add( 'jquery-ui-autocomplete', "/wp-includes/js/jquery/ui/autocomplete$suffix.js", array( 'jquery-ui-menu', 'wp-a11y' ), '1.13.1', 1 );
     790    $scripts->add( 'jquery-ui-button', "/wp-includes/js/jquery/ui/button$suffix.js", array( 'jquery-ui-core', 'jquery-ui-controlgroup', 'jquery-ui-checkboxradio' ), '1.13.1', 1 );
     791    $scripts->add( 'jquery-ui-datepicker', "/wp-includes/js/jquery/ui/datepicker$suffix.js", array( 'jquery-ui-core' ), '1.13.1', 1 );
     792    $scripts->add( 'jquery-ui-dialog', "/wp-includes/js/jquery/ui/dialog$suffix.js", array( 'jquery-ui-resizable', 'jquery-ui-draggable', 'jquery-ui-button' ), '1.13.1', 1 );
     793    $scripts->add( 'jquery-ui-menu', "/wp-includes/js/jquery/ui/menu$suffix.js", array( 'jquery-ui-core' ), '1.13.1', 1 );
     794    $scripts->add( 'jquery-ui-mouse', "/wp-includes/js/jquery/ui/mouse$suffix.js", array( 'jquery-ui-core' ), '1.13.1', 1 );
     795    $scripts->add( 'jquery-ui-progressbar', "/wp-includes/js/jquery/ui/progressbar$suffix.js", array( 'jquery-ui-core' ), '1.13.1', 1 );
     796    $scripts->add( 'jquery-ui-selectmenu', "/wp-includes/js/jquery/ui/selectmenu$suffix.js", array( 'jquery-ui-menu' ), '1.13.1', 1 );
     797    $scripts->add( 'jquery-ui-slider', "/wp-includes/js/jquery/ui/slider$suffix.js", array( 'jquery-ui-mouse' ), '1.13.1', 1 );
     798    $scripts->add( 'jquery-ui-spinner', "/wp-includes/js/jquery/ui/spinner$suffix.js", array( 'jquery-ui-button' ), '1.13.1', 1 );
     799    $scripts->add( 'jquery-ui-tabs', "/wp-includes/js/jquery/ui/tabs$suffix.js", array( 'jquery-ui-core' ), '1.13.1', 1 );
     800    $scripts->add( 'jquery-ui-tooltip', "/wp-includes/js/jquery/ui/tooltip$suffix.js", array( 'jquery-ui-core' ), '1.13.1', 1 );
    801801
    802802    // New in 1.12.1
    803     $scripts->add( 'jquery-ui-checkboxradio', "/wp-includes/js/jquery/ui/checkboxradio$suffix.js", array( 'jquery-ui-core' ), '1.13.0', 1 );
    804     $scripts->add( 'jquery-ui-controlgroup', "/wp-includes/js/jquery/ui/controlgroup$suffix.js", array( 'jquery-ui-core' ), '1.13.0', 1 );
     803    $scripts->add( 'jquery-ui-checkboxradio', "/wp-includes/js/jquery/ui/checkboxradio$suffix.js", array( 'jquery-ui-core' ), '1.13.1', 1 );
     804    $scripts->add( 'jquery-ui-controlgroup', "/wp-includes/js/jquery/ui/controlgroup$suffix.js", array( 'jquery-ui-core' ), '1.13.1', 1 );
    805805
    806806    // Interactions
    807     $scripts->add( 'jquery-ui-draggable', "/wp-includes/js/jquery/ui/draggable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.0', 1 );
    808     $scripts->add( 'jquery-ui-droppable', "/wp-includes/js/jquery/ui/droppable$suffix.js", array( 'jquery-ui-draggable' ), '1.13.0', 1 );
    809     $scripts->add( 'jquery-ui-resizable', "/wp-includes/js/jquery/ui/resizable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.0', 1 );
    810     $scripts->add( 'jquery-ui-selectable', "/wp-includes/js/jquery/ui/selectable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.0', 1 );
    811     $scripts->add( 'jquery-ui-sortable', "/wp-includes/js/jquery/ui/sortable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.0', 1 );
     807    $scripts->add( 'jquery-ui-draggable', "/wp-includes/js/jquery/ui/draggable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.1', 1 );
     808    $scripts->add( 'jquery-ui-droppable', "/wp-includes/js/jquery/ui/droppable$suffix.js", array( 'jquery-ui-draggable' ), '1.13.1', 1 );
     809    $scripts->add( 'jquery-ui-resizable', "/wp-includes/js/jquery/ui/resizable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.1', 1 );
     810    $scripts->add( 'jquery-ui-selectable', "/wp-includes/js/jquery/ui/selectable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.1', 1 );
     811    $scripts->add( 'jquery-ui-sortable', "/wp-includes/js/jquery/ui/sortable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.1', 1 );
    812812
    813813    // As of 1.12.1 `jquery-ui-position` and `jquery-ui-widget` are part of `jquery-ui-core`.
    814814    // Listed here for back-compat.
    815     $scripts->add( 'jquery-ui-position', false, array( 'jquery-ui-core' ), '1.13.0', 1 );
    816     $scripts->add( 'jquery-ui-widget', false, array( 'jquery-ui-core' ), '1.13.0', 1 );
     815    $scripts->add( 'jquery-ui-position', false, array( 'jquery-ui-core' ), '1.13.1', 1 );
     816    $scripts->add( 'jquery-ui-widget', false, array( 'jquery-ui-core' ), '1.13.1', 1 );
    817817
    818818    // Strings for 'jquery-ui-autocomplete' live region messages.
Note: See TracChangeset for help on using the changeset viewer.