Make WordPress Core

Changeset 31716


Ignore:
Timestamp:
03/11/2015 03:11:52 PM (12 years ago)
Author:
ocean90
Message:

Update jQuery UI to 1.11.4.

Changelog:

props scott.gonzalez for arranging this release.
fixes #31597, #30998.

Location:
trunk/src
Files:
41 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/common.css

    r31696 r31716  
    28622862
    28632863/*!
    2864  * jQuery UI Draggable/Sortable 1.11.3
     2864 * jQuery UI Draggable/Sortable 1.11.4
    28652865 * http://jqueryui.com
    28662866 *
  • trunk/src/wp-includes/css/jquery-ui-dialog.css

    r31573 r31716  
    11/*!
    2  * jQuery UI CSS Framework 1.11.3
     2 * jQuery UI CSS Framework 1.11.4
    33 * http://jqueryui.com
    44 *
    … …  
    9494
    9595/*!
    96  * jQuery UI Resizable 1.11.3
     96 * jQuery UI Resizable 1.11.4
    9797 * http://jqueryui.com
    9898 *
  • trunk/src/wp-includes/css/media-views.css

    r31620 r31716  
    106106
    107107/*!
    108  * jQuery UI Draggable/Sortable 1.11.3
     108 * jQuery UI Draggable/Sortable 1.11.4
    109109 * http://jqueryui.com
    110110 *
  • trunk/src/wp-includes/js/jquery/ui/accordion.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Accordion 1.11.3
     2 * jQuery UI Accordion 1.11.4
    33 * http://jqueryui.com
    44 *
    … …  
    2626
    2727return $.widget( "ui.accordion", {
    28         version: "1.11.3",
     28        version: "1.11.4",
    2929        options: {
    3030                active: 0,
    … …  
    517517                        that = this,
    518518                        adjust = 0,
     519                        boxSizing = toShow.css( "box-sizing" ),
    519520                        down = toShow.length &&
    520521                                ( !toHide.length || ( toShow.index() < toHide.index() ) ),
    … …  
    559560                                        fx.now = Math.round( now );
    560561                                        if ( fx.prop !== "height" ) {
    561                                                 adjust += fx.now;
     562                                                if ( boxSizing === "content-box" ) {
     563                                                        adjust += fx.now;
     564                                                }
    562565                                        } else if ( that.options.heightStyle !== "content" ) {
    563566                                                fx.now = Math.round( total - toHide.outerHeight() - adjust );
  • trunk/src/wp-includes/js/jquery/ui/autocomplete.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Autocomplete 1.11.3
     2 * jQuery UI Autocomplete 1.11.4
    33 * http://jqueryui.com
    44 *
    … …  
    2828
    2929$.widget( "ui.autocomplete", {
    30         version: "1.11.3",
     30        version: "1.11.4",
    3131        defaultElement: "<input>",
    3232        options: {
  • trunk/src/wp-includes/js/jquery/ui/button.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Button 1.11.3
     2 * jQuery UI Button 1.11.4
    33 * http://jqueryui.com
    44 *
    … …  
    5353
    5454$.widget( "ui.button", {
    55         version: "1.11.3",
     55        version: "1.11.4",
    5656        defaultElement: "<button>",
    5757        options: {
    … …  
    349349
    350350$.widget( "ui.buttonset", {
    351         version: "1.11.3",
     351        version: "1.11.4",
    352352        options: {
    353353                items: "button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"
  • trunk/src/wp-includes/js/jquery/ui/core.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Core 1.11.3
     2 * jQuery UI Core 1.11.4
    33 * http://jqueryui.com
    44 *
    … …  
    2525
    2626$.extend( $.ui, {
    27         version: "1.11.3",
     27        version: "1.11.4",
    2828
    2929        keyCode: {
  • trunk/src/wp-includes/js/jquery/ui/datepicker.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Datepicker 1.11.3
     2 * jQuery UI Datepicker 1.11.4
    33 * http://jqueryui.com
    44 *
    … …  
    2424}(function( $ ) {
    2525
    26 $.extend($.ui, { datepicker: { version: "1.11.3" } });
     26$.extend($.ui, { datepicker: { version: "1.11.4" } });
    2727
    2828var datepicker_instActive;
    … …  
    20782078$.datepicker.initialized = false;
    20792079$.datepicker.uuid = new Date().getTime();
    2080 $.datepicker.version = "1.11.3";
     2080$.datepicker.version = "1.11.4";
    20812081
    20822082return $.datepicker;
  • trunk/src/wp-includes/js/jquery/ui/dialog.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Dialog 1.11.3
     2 * jQuery UI Dialog 1.11.4
    33 * http://jqueryui.com
    44 *
    … …  
    3131
    3232return $.widget( "ui.dialog", {
    33         version: "1.11.3",
     33        version: "1.11.4",
    3434        options: {
    3535                appendTo: "body",
    … …  
    151151                        originalPosition = this.originalPosition;
    152152
     153                this._untrackInstance();
    153154                this._destroyOverlay();
    154155
    … …  
    229230        _moveToTop: function( event, silent ) {
    230231                var moved = false,
    231                         zIndicies = this.uiDialog.siblings( ".ui-front:visible" ).map(function() {
     232                        zIndices = this.uiDialog.siblings( ".ui-front:visible" ).map(function() {
    232233                                return +$( this ).css( "z-index" );
    233234                        }).get(),
    234                         zIndexMax = Math.max.apply( null, zIndicies );
     235                        zIndexMax = Math.max.apply( null, zIndices );
    235236
    236237                if ( zIndexMax >= +this.uiDialog.css( "z-index" ) ) {
  • trunk/src/wp-includes/js/jquery/ui/draggable.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Draggable 1.11.3
     2 * jQuery UI Draggable 1.11.4
    33 * http://jqueryui.com
    44 *
    … …  
    2727
    2828$.widget("ui.draggable", $.ui.mouse, {
    29         version: "1.11.3",
     29        version: "1.11.4",
    3030        widgetEventPrefix: "drag",
    3131        options: {
    … …  
    801801                                        sortable.isOver = 1;
    802802
     803                                        // Store draggable's parent in case we need to reappend to it later.
     804                                        draggable._parent = ui.helper.parent();
     805
    803806                                        sortable.currentItem = ui.helper
    804807                                                .appendTo( sortable.element )
    … …  
    877880                                        }
    878881
    879                                         // Recalculate the draggable's offset considering the sortable
    880                                         // may have modified them in unexpected ways (#8809)
     882                                        // Restore and recalculate the draggable's offset considering the sortable
     883                                        // may have modified them in unexpected ways. (#8809, #10669)
     884                                        ui.helper.appendTo( draggable._parent );
    881885                                        draggable._refreshOffsets( event );
    882886                                        ui.position = draggable._generatePosition( event, true );
  • trunk/src/wp-includes/js/jquery/ui/droppable.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Droppable 1.11.3
     2 * jQuery UI Droppable 1.11.4
    33 * http://jqueryui.com
    44 *
    … …  
    2828
    2929$.widget( "ui.droppable", {
    30         version: "1.11.3",
     30        version: "1.11.4",
    3131        widgetEventPrefix: "drop",
    3232        options: {
  • trunk/src/wp-includes/js/jquery/ui/effect-blind.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Effects Blind 1.11.3
     2 * jQuery UI Effects Blind 1.11.4
    33 * http://jqueryui.com
    44 *
  • trunk/src/wp-includes/js/jquery/ui/effect-bounce.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Effects Bounce 1.11.3
     2 * jQuery UI Effects Bounce 1.11.4
    33 * http://jqueryui.com
    44 *
  • trunk/src/wp-includes/js/jquery/ui/effect-clip.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Effects Clip 1.11.3
     2 * jQuery UI Effects Clip 1.11.4
    33 * http://jqueryui.com
    44 *
  • trunk/src/wp-includes/js/jquery/ui/effect-drop.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Effects Drop 1.11.3
     2 * jQuery UI Effects Drop 1.11.4
    33 * http://jqueryui.com
    44 *
  • trunk/src/wp-includes/js/jquery/ui/effect-explode.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Effects Explode 1.11.3
     2 * jQuery UI Effects Explode 1.11.4
    33 * http://jqueryui.com
    44 *
  • trunk/src/wp-includes/js/jquery/ui/effect-fade.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Effects Fade 1.11.3
     2 * jQuery UI Effects Fade 1.11.4
    33 * http://jqueryui.com
    44 *
  • trunk/src/wp-includes/js/jquery/ui/effect-fold.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Effects Fold 1.11.3
     2 * jQuery UI Effects Fold 1.11.4
    33 * http://jqueryui.com
    44 *
  • trunk/src/wp-includes/js/jquery/ui/effect-highlight.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Effects Highlight 1.11.3
     2 * jQuery UI Effects Highlight 1.11.4
    33 * http://jqueryui.com
    44 *
  • trunk/src/wp-includes/js/jquery/ui/effect-puff.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Effects Puff 1.11.3
     2 * jQuery UI Effects Puff 1.11.4
    33 * http://jqueryui.com
    44 *
  • trunk/src/wp-includes/js/jquery/ui/effect-pulsate.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Effects Pulsate 1.11.3
     2 * jQuery UI Effects Pulsate 1.11.4
    33 * http://jqueryui.com
    44 *
  • trunk/src/wp-includes/js/jquery/ui/effect-scale.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Effects Scale 1.11.3
     2 * jQuery UI Effects Scale 1.11.4
    33 * http://jqueryui.com
    44 *
  • trunk/src/wp-includes/js/jquery/ui/effect-shake.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Effects Shake 1.11.3
     2 * jQuery UI Effects Shake 1.11.4
    33 * http://jqueryui.com
    44 *
  • trunk/src/wp-includes/js/jquery/ui/effect-size.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Effects Size 1.11.3
     2 * jQuery UI Effects Size 1.11.4
    33 * http://jqueryui.com
    44 *
  • trunk/src/wp-includes/js/jquery/ui/effect-slide.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Effects Slide 1.11.3
     2 * jQuery UI Effects Slide 1.11.4
    33 * http://jqueryui.com
    44 *
  • trunk/src/wp-includes/js/jquery/ui/effect-transfer.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Effects Transfer 1.11.3
     2 * jQuery UI Effects Transfer 1.11.4
    33 * http://jqueryui.com
    44 *
  • trunk/src/wp-includes/js/jquery/ui/effect.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Effects 1.11.3
     2 * jQuery UI Effects 1.11.4
    33 * http://jqueryui.com
    44 *
    … …  
    905905
    906906$.extend( $.effects, {
    907         version: "1.11.3",
     907        version: "1.11.4",
    908908
    909909        // Saves a set of properties in a data storage
  • trunk/src/wp-includes/js/jquery/ui/menu.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Menu 1.11.3
     2 * jQuery UI Menu 1.11.4
    33 * http://jqueryui.com
    44 *
    … …  
    2727
    2828return $.widget( "ui.menu", {
    29         version: "1.11.3",
     29        version: "1.11.4",
    3030        defaultElement: "<ul>",
    3131        delay: 300,
  • trunk/src/wp-includes/js/jquery/ui/mouse.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Mouse 1.11.3
     2 * jQuery UI Mouse 1.11.4
    33 * http://jqueryui.com
    44 *
    … …  
    3030
    3131return $.widget("ui.mouse", {
    32         version: "1.11.3",
     32        version: "1.11.4",
    3333        options: {
    3434                cancel: "input,textarea,button,select,option",
  • trunk/src/wp-includes/js/jquery/ui/position.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Position 1.11.3
     2 * jQuery UI Position 1.11.4
    33 * http://jqueryui.com
    44 *
  • trunk/src/wp-includes/js/jquery/ui/progressbar.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Progressbar 1.11.3
     2 * jQuery UI Progressbar 1.11.4
    33 * http://jqueryui.com
    44 *
    … …  
    2626
    2727return $.widget( "ui.progressbar", {
    28         version: "1.11.3",
     28        version: "1.11.4",
    2929        options: {
    3030                max: 100,
  • trunk/src/wp-includes/js/jquery/ui/resizable.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Resizable 1.11.3
     2 * jQuery UI Resizable 1.11.4
    33 * http://jqueryui.com
    44 *
    … …  
    2727
    2828$.widget("ui.resizable", $.ui.mouse, {
    29         version: "1.11.3",
     29        version: "1.11.4",
    3030        widgetEventPrefix: "resize",
    3131        options: {
    … …  
    161161                                } );
    162162
    163                 if (this.handles.constructor === String) {
     163                this._handles = $();
     164                if ( this.handles.constructor === String ) {
    164165
    165166                        if ( this.handles === "all") {
    … …  
    199200                                if (this.handles[i].constructor === String) {
    200201                                        this.handles[i] = this.element.children( this.handles[ i ] ).first().show();
     202                                } else if ( this.handles[ i ].jquery || this.handles[ i ].nodeType ) {
     203                                        this.handles[ i ] = $( this.handles[ i ] );
     204                                        this._on( this.handles[ i ], { "mousedown": that._mouseDown });
    201205                                }
    202206
    … …  
    215219
    216220                                        this._proportionallyResize();
    217 
    218221                                }
    219222
    220                                 // TODO: What's that good for? There's not anything to be executed left
    221                                 if (!$(this.handles[i]).length) {
    222                                         continue;
    223                                 }
     223                                this._handles = this._handles.add( this.handles[ i ] );
    224224                        }
    225225                };
    … …  
    228228                this._renderAxis(this.element);
    229229
    230                 this._handles = $(".ui-resizable-handle", this.element)
    231                         .disableSelection();
     230                this._handles = this._handles.add( this.element.find( ".ui-resizable-handle" ) );
     231                this._handles.disableSelection();
    232232
    233233                this._handles.mouseover(function() {
    … …  
    263263
    264264                this._mouseInit();
    265 
    266265        },
    267266
    … …  
    985984        start: function() {
    986985                var that = $(this).resizable( "instance" ),
    987                         o = that.options,
    988                         _store = function(exp) {
    989                                 $(exp).each(function() {
    990                                         var el = $(this);
    991                                         el.data("ui-resizable-alsoresize", {
    992                                                 width: parseInt(el.width(), 10), height: parseInt(el.height(), 10),
    993                                                 left: parseInt(el.css("left"), 10), top: parseInt(el.css("top"), 10)
    994                                         });
    995                                 });
    996                         };
    997 
    998                 if (typeof(o.alsoResize) === "object" && !o.alsoResize.parentNode) {
    999                         if (o.alsoResize.length) {
    1000                                 o.alsoResize = o.alsoResize[0];
    1001                                 _store(o.alsoResize);
    1002                         } else {
    1003                                 $.each(o.alsoResize, function(exp) {
    1004                                         _store(exp);
    1005                                 });
    1006                         }
    1007                 } else {
    1008                         _store(o.alsoResize);
    1009                 }
     986                        o = that.options;
     987
     988                $(o.alsoResize).each(function() {
     989                        var el = $(this);
     990                        el.data("ui-resizable-alsoresize", {
     991                                width: parseInt(el.width(), 10), height: parseInt(el.height(), 10),
     992                                left: parseInt(el.css("left"), 10), top: parseInt(el.css("top"), 10)
     993                        });
     994                });
    1010995        },
    1011996
    … …  
    10201005                                top: (that.position.top - op.top) || 0,
    10211006                                left: (that.position.left - op.left) || 0
    1022                         },
    1023 
    1024                         _alsoResize = function(exp, c) {
    1025                                 $(exp).each(function() {
    1026                                         var el = $(this), start = $(this).data("ui-resizable-alsoresize"), style = {},
    1027                                                 css = c && c.length ?
    1028                                                         c :
    1029                                                         el.parents(ui.originalElement[0]).length ?
    1030                                                                 [ "width", "height" ] :
    1031                                                                 [ "width", "height", "top", "left" ];
    1032 
    1033                                         $.each(css, function(i, prop) {
    1034                                                 var sum = (start[prop] || 0) + (delta[prop] || 0);
    1035                                                 if (sum && sum >= 0) {
    1036                                                         style[prop] = sum || null;
    1037                                                 }
    1038                                         });
    1039 
    1040                                         el.css(style);
     1007                        };
     1008
     1009                        $(o.alsoResize).each(function() {
     1010                                var el = $(this), start = $(this).data("ui-resizable-alsoresize"), style = {},
     1011                                        css = el.parents(ui.originalElement[0]).length ?
     1012                                                        [ "width", "height" ] :
     1013                                                        [ "width", "height", "top", "left" ];
     1014
     1015                                $.each(css, function(i, prop) {
     1016                                        var sum = (start[prop] || 0) + (delta[prop] || 0);
     1017                                        if (sum && sum >= 0) {
     1018                                                style[prop] = sum || null;
     1019                                        }
    10411020                                });
    1042                         };
    1043 
    1044                 if (typeof(o.alsoResize) === "object" && !o.alsoResize.nodeType) {
    1045                         $.each(o.alsoResize, function(exp, c) {
    1046                                 _alsoResize(exp, c);
     1021
     1022                                el.css(style);
    10471023                        });
    1048                 } else {
    1049                         _alsoResize(o.alsoResize);
    1050                 }
    10511024        },
    10521025
  • trunk/src/wp-includes/js/jquery/ui/selectable.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Selectable 1.11.3
     2 * jQuery UI Selectable 1.11.4
    33 * http://jqueryui.com
    44 *
    … …  
    2727
    2828return $.widget("ui.selectable", $.ui.mouse, {
    29         version: "1.11.3",
     29        version: "1.11.4",
    3030        options: {
    3131                appendTo: "body",
  • trunk/src/wp-includes/js/jquery/ui/selectmenu.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Selectmenu 1.11.3
     2 * jQuery UI Selectmenu 1.11.4
    33 * http://jqueryui.com
    44 *
    … …  
    2828
    2929return $.widget( "ui.selectmenu", {
    30         version: "1.11.3",
     30        version: "1.11.4",
    3131        defaultElement: "<select>",
    3232        options: {
  • trunk/src/wp-includes/js/jquery/ui/slider.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Slider 1.11.3
     2 * jQuery UI Slider 1.11.4
    33 * http://jqueryui.com
    44 *
    … …  
    2727
    2828return $.widget( "ui.slider", $.ui.mouse, {
    29         version: "1.11.3",
     29        version: "1.11.4",
    3030        widgetEventPrefix: "slide",
    3131
    … …  
    551551                        min = this._valueMin(),
    552552                        step = this.options.step,
    553                         aboveMin = Math.floor( ( max - min ) / step ) * step;
     553                        aboveMin = Math.floor( ( +( max - min ).toFixed( this._precision() ) ) / step ) * step;
    554554                max = aboveMin + min;
    555555                this.max = parseFloat( max.toFixed( this._precision() ) );
  • trunk/src/wp-includes/js/jquery/ui/sortable.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Sortable 1.11.3
     2 * jQuery UI Sortable 1.11.4
    33 * http://jqueryui.com
    44 *
    … …  
    2727
    2828return $.widget("ui.sortable", $.ui.mouse, {
    29         version: "1.11.3",
     29        version: "1.11.4",
    3030        widgetEventPrefix: "sort",
    3131        ready: false,
    … …  
    7878
    7979        _create: function() {
    80 
    81                 var o = this.options;
    8280                this.containerCache = {};
    8381                this.element.addClass("ui-sortable");
    … …  
    8583                //Get the items
    8684                this.refresh();
    87 
    88                 //Let's determine if the items are being displayed horizontally
    89                 this.floating = this.items.length ? o.axis === "x" || this._isFloating(this.items[0].item) : false;
    9085
    9186                //Let's determine the parent's offset
    … …  
    732727        refreshPositions: function(fast) {
    733728
     729                // Determine whether items are being displayed horizontally
     730                this.floating = this.items.length ?
     731                        this.options.axis === "x" || this._isFloating( this.items[ 0 ].item ) :
     732                        false;
     733
    734734                //This has to be redone because due to the item being moved out/into the offsetParent, the offsetParent's position will change
    735735                if(this.offsetParent && this.helper) {
    … …  
    789789                                                        .removeClass("ui-sortable-helper");
    790790
    791                                         if ( nodeName === "tr" ) {
    792                                                 that.currentItem.children().each(function() {
    793                                                         $( "<td>&#160;</td>", that.document[0] )
    794                                                                 .attr( "colspan", $( this ).attr( "colspan" ) || 1 )
    795                                                                 .appendTo( element );
    796                                                 });
     791                                        if ( nodeName === "tbody" ) {
     792                                                that._createTrPlaceholder(
     793                                                        that.currentItem.find( "tr" ).eq( 0 ),
     794                                                        $( "<tr>", that.document[ 0 ] ).appendTo( element )
     795                                                );
     796                                        } else if ( nodeName === "tr" ) {
     797                                                that._createTrPlaceholder( that.currentItem, element );
    797798                                        } else if ( nodeName === "img" ) {
    798799                                                element.attr( "src", that.currentItem.attr( "src" ) );
    … …  
    829830                o.placeholder.update(that, that.placeholder);
    830831
     832        },
     833
     834        _createTrPlaceholder: function( sourceTr, targetTr ) {
     835                var that = this;
     836
     837                sourceTr.children().each(function() {
     838                        $( "<td>&#160;</td>", that.document[ 0 ] )
     839                                .attr( "colspan", $( this ).attr( "colspan" ) || 1 )
     840                                .appendTo( targetTr );
     841                });
    831842        },
    832843
  • trunk/src/wp-includes/js/jquery/ui/spinner.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Spinner 1.11.3
     2 * jQuery UI Spinner 1.11.4
    33 * http://jqueryui.com
    44 *
    … …  
    3838
    3939return $.widget( "ui.spinner", {
    40         version: "1.11.3",
     40        version: "1.11.4",
    4141        defaultElement: "<input>",
    4242        widgetEventPrefix: "spin",
  • trunk/src/wp-includes/js/jquery/ui/tabs.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Tabs 1.11.3
     2 * jQuery UI Tabs 1.11.4
    33 * http://jqueryui.com
    44 *
    … …  
    2626
    2727return $.widget( "ui.tabs", {
    28         version: "1.11.3",
     28        version: "1.11.4",
    2929        delay: 300,
    3030        options: {
    … …  
    818818                                tab: tab,
    819819                                panel: panel
     820                        },
     821                        complete = function( jqXHR, status ) {
     822                                if ( status === "abort" ) {
     823                                        that.panels.stop( false, true );
     824                                }
     825
     826                                tab.removeClass( "ui-tabs-loading" );
     827                                panel.removeAttr( "aria-busy" );
     828
     829                                if ( jqXHR === that.xhr ) {
     830                                        delete that.xhr;
     831                                }
    820832                        };
    821833
    … …  
    835847
    836848                        this.xhr
    837                                 .success(function( response ) {
     849                                .done(function( response, status, jqXHR ) {
    838850                                        // support: jQuery <1.8
    839851                                        // http://bugs.jquery.com/ticket/11778
    … …  
    841853                                                panel.html( response );
    842854                                                that._trigger( "load", event, eventData );
     855
     856                                                complete( jqXHR, status );
    843857                                        }, 1 );
    844858                                })
    845                                 .complete(function( jqXHR, status ) {
     859                                .fail(function( jqXHR, status ) {
    846860                                        // support: jQuery <1.8
    847861                                        // http://bugs.jquery.com/ticket/11778
    848862                                        setTimeout(function() {
    849                                                 if ( status === "abort" ) {
    850                                                         that.panels.stop( false, true );
    851                                                 }
    852 
    853                                                 tab.removeClass( "ui-tabs-loading" );
    854                                                 panel.removeAttr( "aria-busy" );
    855 
    856                                                 if ( jqXHR === that.xhr ) {
    857                                                         delete that.xhr;
    858                                                 }
     863                                                complete( jqXHR, status );
    859864                                        }, 1 );
    860865                                });
  • trunk/src/wp-includes/js/jquery/ui/tooltip.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Tooltip 1.11.3
     2 * jQuery UI Tooltip 1.11.4
    33 * http://jqueryui.com
    44 *
    … …  
    2727
    2828return $.widget( "ui.tooltip", {
    29         version: "1.11.3",
     29        version: "1.11.4",
    3030        options: {
    3131                content: function() {
    … …  
    195195                }
    196196
     197                this._registerCloseHandlers( event, target );
    197198                this._updateContent( target, event );
    198199        },
    … …  
    209210
    210211                content = contentOption.call( target[0], function( response ) {
    211                         // ignore async response if tooltip was closed already
    212                         if ( !target.data( "ui-tooltip-open" ) ) {
    213                                 return;
    214                         }
     212
    215213                        // IE may instantly serve a cached response for ajax requests
    216214                        // delay this call to _open so the other call to _open runs first
    217215                        that._delay(function() {
     216
     217                                // Ignore async response if tooltip was closed already
     218                                if ( !target.data( "ui-tooltip-open" ) ) {
     219                                        return;
     220                                }
     221
    218222                                // jQuery creates a special event for focusin when it doesn't
    219223                                // exist natively. To improve performance, the native event
    … …  
    233237
    234238        _open: function( event, target, content ) {
    235                 var tooltipData, tooltip, events, delayedShow, a11yContent,
     239                var tooltipData, tooltip, delayedShow, a11yContent,
    236240                        positionOption = $.extend( {}, this.options.position );
    237241
    … …  
    315319
    316320                this._trigger( "open", event, { tooltip: tooltip } );
    317 
    318                 events = {
     321        },
     322
     323        _registerCloseHandlers: function( event, target ) {
     324                var events = {
    319325                        keyup: function( event ) {
    320326                                if ( event.keyCode === $.ui.keyCode.ESCAPE ) {
    … …  
    330336                if ( target[ 0 ] !== this.element[ 0 ] ) {
    331337                        events.remove = function() {
    332                                 this._removeTooltip( tooltip );
     338                                this._removeTooltip( this._find( target ).tooltip );
    333339                        };
    334340                }
    … …  
    351357                // The tooltip may already be closed
    352358                if ( !tooltipData ) {
     359
     360                        // We set ui-tooltip-open immediately upon open (in open()), but only set the
     361                        // additional data once there's actually content to show (in _open()). So even if the
     362                        // tooltip doesn't have full data, we always remove ui-tooltip-open in case we're in
     363                        // the period between open() and _open().
     364                        target.removeData( "ui-tooltip-open" );
    353365                        return;
    354366                }
  • trunk/src/wp-includes/js/jquery/ui/widget.js

    r31569 r31716  
    11/*!
    2  * jQuery UI Widget 1.11.3
     2 * jQuery UI Widget 1.11.4
    33 * http://jqueryui.com
    44 *
  • trunk/src/wp-includes/script-loader.php

    r31704 r31716  
    169169
    170170        // full jQuery UI
    171         $scripts->add( 'jquery-ui-core', "/wp-includes/js/jquery/ui/core$dev_suffix.js", array('jquery'), '1.11.3', 1 );
    172         $scripts->add( 'jquery-effects-core', "/wp-includes/js/jquery/ui/effect$dev_suffix.js", array('jquery'), '1.11.3', 1 );
    173 
    174         $scripts->add( 'jquery-effects-blind', "/wp-includes/js/jquery/ui/effect-blind$dev_suffix.js", array('jquery-effects-core'), '1.11.3', 1 );
    175         $scripts->add( 'jquery-effects-bounce', "/wp-includes/js/jquery/ui/effect-bounce$dev_suffix.js", array('jquery-effects-core'), '1.11.3', 1 );
    176         $scripts->add( 'jquery-effects-clip', "/wp-includes/js/jquery/ui/effect-clip$dev_suffix.js", array('jquery-effects-core'), '1.11.3', 1 );
    177         $scripts->add( 'jquery-effects-drop', "/wp-includes/js/jquery/ui/effect-drop$dev_suffix.js", array('jquery-effects-core'), '1.11.3', 1 );
    178         $scripts->add( 'jquery-effects-explode', "/wp-includes/js/jquery/ui/effect-explode$dev_suffix.js", array('jquery-effects-core'), '1.11.3', 1 );
    179         $scripts->add( 'jquery-effects-fade', "/wp-includes/js/jquery/ui/effect-fade$dev_suffix.js", array('jquery-effects-core'), '1.11.3', 1 );
    180         $scripts->add( 'jquery-effects-fold', "/wp-includes/js/jquery/ui/effect-fold$dev_suffix.js", array('jquery-effects-core'), '1.11.3', 1 );
    181         $scripts->add( 'jquery-effects-highlight', "/wp-includes/js/jquery/ui/effect-highlight$dev_suffix.js", array('jquery-effects-core'), '1.11.3', 1 );
    182         $scripts->add( 'jquery-effects-puff', "/wp-includes/js/jquery/ui/effect-puff$dev_suffix.js", array('jquery-effects-core', 'jquery-effects-scale'), '1.11.3', 1 );
    183         $scripts->add( 'jquery-effects-pulsate', "/wp-includes/js/jquery/ui/effect-pulsate$dev_suffix.js", array('jquery-effects-core'), '1.11.3', 1 );
    184         $scripts->add( 'jquery-effects-scale', "/wp-includes/js/jquery/ui/effect-scale$dev_suffix.js", array('jquery-effects-core', 'jquery-effects-size'), '1.11.3', 1 );
    185         $scripts->add( 'jquery-effects-shake', "/wp-includes/js/jquery/ui/effect-shake$dev_suffix.js", array('jquery-effects-core'), '1.11.3', 1 );
    186         $scripts->add( 'jquery-effects-size', "/wp-includes/js/jquery/ui/effect-size$dev_suffix.js", array('jquery-effects-core'), '1.11.3', 1 );
    187         $scripts->add( 'jquery-effects-slide', "/wp-includes/js/jquery/ui/effect-slide$dev_suffix.js", array('jquery-effects-core'), '1.11.3', 1 );
    188         $scripts->add( 'jquery-effects-transfer', "/wp-includes/js/jquery/ui/effect-transfer$dev_suffix.js", array('jquery-effects-core'), '1.11.3', 1 );
    189 
    190         $scripts->add( 'jquery-ui-accordion', "/wp-includes/js/jquery/ui/accordion$dev_suffix.js", array('jquery-ui-core', 'jquery-ui-widget'), '1.11.3', 1 );
    191         $scripts->add( 'jquery-ui-autocomplete', "/wp-includes/js/jquery/ui/autocomplete$dev_suffix.js", array('jquery-ui-menu'), '1.11.3', 1 );
    192         $scripts->add( 'jquery-ui-button', "/wp-includes/js/jquery/ui/button$dev_suffix.js", array('jquery-ui-core', 'jquery-ui-widget'), '1.11.3', 1 );
    193         $scripts->add( 'jquery-ui-datepicker', "/wp-includes/js/jquery/ui/datepicker$dev_suffix.js", array('jquery-ui-core'), '1.11.3', 1 );
    194         $scripts->add( 'jquery-ui-dialog', "/wp-includes/js/jquery/ui/dialog$dev_suffix.js", array('jquery-ui-resizable', 'jquery-ui-draggable', 'jquery-ui-button', 'jquery-ui-position'), '1.11.3', 1 );
    195         $scripts->add( 'jquery-ui-draggable', "/wp-includes/js/jquery/ui/draggable$dev_suffix.js", array('jquery-ui-mouse'), '1.11.3', 1 );
    196         $scripts->add( 'jquery-ui-droppable', "/wp-includes/js/jquery/ui/droppable$dev_suffix.js", array('jquery-ui-draggable'), '1.11.3', 1 );
    197         $scripts->add( 'jquery-ui-menu', "/wp-includes/js/jquery/ui/menu$dev_suffix.js", array( 'jquery-ui-core', 'jquery-ui-widget', 'jquery-ui-position' ), '1.11.3', 1 );
    198         $scripts->add( 'jquery-ui-mouse', "/wp-includes/js/jquery/ui/mouse$dev_suffix.js", array( 'jquery-ui-core', 'jquery-ui-widget' ), '1.11.3', 1 );
    199         $scripts->add( 'jquery-ui-position', "/wp-includes/js/jquery/ui/position$dev_suffix.js", array('jquery'), '1.11.3', 1 );
    200         $scripts->add( 'jquery-ui-progressbar', "/wp-includes/js/jquery/ui/progressbar$dev_suffix.js", array('jquery-ui-core', 'jquery-ui-widget'), '1.11.3', 1 );
    201         $scripts->add( 'jquery-ui-resizable', "/wp-includes/js/jquery/ui/resizable$dev_suffix.js", array('jquery-ui-mouse'), '1.11.3', 1 );
    202         $scripts->add( 'jquery-ui-selectable', "/wp-includes/js/jquery/ui/selectable$dev_suffix.js", array('jquery-ui-mouse'), '1.11.3', 1 );
    203         $scripts->add( 'jquery-ui-selectmenu', "/wp-includes/js/jquery/ui/selectmenu$dev_suffix.js", array('jquery-ui-menu'), '1.11.3', 1 );
    204         $scripts->add( 'jquery-ui-slider', "/wp-includes/js/jquery/ui/slider$dev_suffix.js", array('jquery-ui-mouse'), '1.11.3', 1 );
    205         $scripts->add( 'jquery-ui-sortable', "/wp-includes/js/jquery/ui/sortable$dev_suffix.js", array('jquery-ui-mouse'), '1.11.3', 1 );
    206         $scripts->add( 'jquery-ui-spinner', "/wp-includes/js/jquery/ui/spinner$dev_suffix.js", array( 'jquery-ui-button' ), '1.11.3', 1 );
    207         $scripts->add( 'jquery-ui-tabs', "/wp-includes/js/jquery/ui/tabs$dev_suffix.js", array('jquery-ui-core', 'jquery-ui-widget'), '1.11.3', 1 );
    208         $scripts->add( 'jquery-ui-tooltip', "/wp-includes/js/jquery/ui/tooltip$dev_suffix.js", array( 'jquery-ui-core', 'jquery-ui-widget', 'jquery-ui-position' ), '1.11.3', 1 );
    209         $scripts->add( 'jquery-ui-widget', "/wp-includes/js/jquery/ui/widget$dev_suffix.js", array('jquery'), '1.11.3', 1 );
     171        $scripts->add( 'jquery-ui-core', "/wp-includes/js/jquery/ui/core$dev_suffix.js", array('jquery'), '1.11.4', 1 );
     172        $scripts->add( 'jquery-effects-core', "/wp-includes/js/jquery/ui/effect$dev_suffix.js", array('jquery'), '1.11.4', 1 );
     173
     174        $scripts->add( 'jquery-effects-blind', "/wp-includes/js/jquery/ui/effect-blind$dev_suffix.js", array('jquery-effects-core'), '1.11.4', 1 );
     175        $scripts->add( 'jquery-effects-bounce', "/wp-includes/js/jquery/ui/effect-bounce$dev_suffix.js", array('jquery-effects-core'), '1.11.4', 1 );
     176        $scripts->add( 'jquery-effects-clip', "/wp-includes/js/jquery/ui/effect-clip$dev_suffix.js", array('jquery-effects-core'), '1.11.4', 1 );
     177        $scripts->add( 'jquery-effects-drop', "/wp-includes/js/jquery/ui/effect-drop$dev_suffix.js", array('jquery-effects-core'), '1.11.4', 1 );
     178        $scripts->add( 'jquery-effects-explode', "/wp-includes/js/jquery/ui/effect-explode$dev_suffix.js", array('jquery-effects-core'), '1.11.4', 1 );
     179        $scripts->add( 'jquery-effects-fade', "/wp-includes/js/jquery/ui/effect-fade$dev_suffix.js", array('jquery-effects-core'), '1.11.4', 1 );
     180        $scripts->add( 'jquery-effects-fold', "/wp-includes/js/jquery/ui/effect-fold$dev_suffix.js", array('jquery-effects-core'), '1.11.4', 1 );
     181        $scripts->add( 'jquery-effects-highlight', "/wp-includes/js/jquery/ui/effect-highlight$dev_suffix.js", array('jquery-effects-core'), '1.11.4', 1 );
     182        $scripts->add( 'jquery-effects-puff', "/wp-includes/js/jquery/ui/effect-puff$dev_suffix.js", array('jquery-effects-core', 'jquery-effects-scale'), '1.11.4', 1 );
     183        $scripts->add( 'jquery-effects-pulsate', "/wp-includes/js/jquery/ui/effect-pulsate$dev_suffix.js", array('jquery-effects-core'), '1.11.4', 1 );
     184        $scripts->add( 'jquery-effects-scale', "/wp-includes/js/jquery/ui/effect-scale$dev_suffix.js", array('jquery-effects-core', 'jquery-effects-size'), '1.11.4', 1 );
     185        $scripts->add( 'jquery-effects-shake', "/wp-includes/js/jquery/ui/effect-shake$dev_suffix.js", array('jquery-effects-core'), '1.11.4', 1 );
     186        $scripts->add( 'jquery-effects-size', "/wp-includes/js/jquery/ui/effect-size$dev_suffix.js", array('jquery-effects-core'), '1.11.4', 1 );
     187        $scripts->add( 'jquery-effects-slide', "/wp-includes/js/jquery/ui/effect-slide$dev_suffix.js", array('jquery-effects-core'), '1.11.4', 1 );
     188        $scripts->add( 'jquery-effects-transfer', "/wp-includes/js/jquery/ui/effect-transfer$dev_suffix.js", array('jquery-effects-core'), '1.11.4', 1 );
     189
     190        $scripts->add( 'jquery-ui-accordion', "/wp-includes/js/jquery/ui/accordion$dev_suffix.js", array('jquery-ui-core', 'jquery-ui-widget'), '1.11.4', 1 );
     191        $scripts->add( 'jquery-ui-autocomplete', "/wp-includes/js/jquery/ui/autocomplete$dev_suffix.js", array('jquery-ui-menu'), '1.11.4', 1 );
     192        $scripts->add( 'jquery-ui-button', "/wp-includes/js/jquery/ui/button$dev_suffix.js", array('jquery-ui-core', 'jquery-ui-widget'), '1.11.4', 1 );
     193        $scripts->add( 'jquery-ui-datepicker', "/wp-includes/js/jquery/ui/datepicker$dev_suffix.js", array('jquery-ui-core'), '1.11.4', 1 );
     194        $scripts->add( 'jquery-ui-dialog', "/wp-includes/js/jquery/ui/dialog$dev_suffix.js", array('jquery-ui-resizable', 'jquery-ui-draggable', 'jquery-ui-button', 'jquery-ui-position'), '1.11.4', 1 );
     195        $scripts->add( 'jquery-ui-draggable', "/wp-includes/js/jquery/ui/draggable$dev_suffix.js", array('jquery-ui-mouse'), '1.11.4', 1 );
     196        $scripts->add( 'jquery-ui-droppable', "/wp-includes/js/jquery/ui/droppable$dev_suffix.js", array('jquery-ui-draggable'), '1.11.4', 1 );
     197        $scripts->add( 'jquery-ui-menu', "/wp-includes/js/jquery/ui/menu$dev_suffix.js", array( 'jquery-ui-core', 'jquery-ui-widget', 'jquery-ui-position' ), '1.11.4', 1 );
     198        $scripts->add( 'jquery-ui-mouse', "/wp-includes/js/jquery/ui/mouse$dev_suffix.js", array( 'jquery-ui-core', 'jquery-ui-widget' ), '1.11.4', 1 );
     199        $scripts->add( 'jquery-ui-position', "/wp-includes/js/jquery/ui/position$dev_suffix.js", array('jquery'), '1.11.4', 1 );
     200        $scripts->add( 'jquery-ui-progressbar', "/wp-includes/js/jquery/ui/progressbar$dev_suffix.js", array('jquery-ui-core', 'jquery-ui-widget'), '1.11.4', 1 );
     201        $scripts->add( 'jquery-ui-resizable', "/wp-includes/js/jquery/ui/resizable$dev_suffix.js", array('jquery-ui-mouse'), '1.11.4', 1 );
     202        $scripts->add( 'jquery-ui-selectable', "/wp-includes/js/jquery/ui/selectable$dev_suffix.js", array('jquery-ui-mouse'), '1.11.4', 1 );
     203        $scripts->add( 'jquery-ui-selectmenu', "/wp-includes/js/jquery/ui/selectmenu$dev_suffix.js", array('jquery-ui-menu'), '1.11.4', 1 );
     204        $scripts->add( 'jquery-ui-slider', "/wp-includes/js/jquery/ui/slider$dev_suffix.js", array('jquery-ui-mouse'), '1.11.4', 1 );
     205        $scripts->add( 'jquery-ui-sortable', "/wp-includes/js/jquery/ui/sortable$dev_suffix.js", array('jquery-ui-mouse'), '1.11.4', 1 );
     206        $scripts->add( 'jquery-ui-spinner', "/wp-includes/js/jquery/ui/spinner$dev_suffix.js", array( 'jquery-ui-button' ), '1.11.4', 1 );
     207        $scripts->add( 'jquery-ui-tabs', "/wp-includes/js/jquery/ui/tabs$dev_suffix.js", array('jquery-ui-core', 'jquery-ui-widget'), '1.11.4', 1 );
     208        $scripts->add( 'jquery-ui-tooltip', "/wp-includes/js/jquery/ui/tooltip$dev_suffix.js", array( 'jquery-ui-core', 'jquery-ui-widget', 'jquery-ui-position' ), '1.11.4', 1 );
     209        $scripts->add( 'jquery-ui-widget', "/wp-includes/js/jquery/ui/widget$dev_suffix.js", array('jquery'), '1.11.4', 1 );
    210210
    211211        // deprecated, not used in core, most functionality is included in jQuery 1.3
Note: See TracChangeset for help on using the changeset viewer.