From aa2da3051ad53874c0e377f25bcc31efa99894ec Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Fri, 27 Feb 2015 10:20:18 +0000 Subject: [PATCH] Update jQuery UI to 1.11.3. Changelog: * http://jqueryui.com/changelog/1.11.3/ * https://github.com/jquery/jquery-ui/compare/1.11.2...1.11.3 fixes #31473. git-svn-id: https://develop.svn.wordpress.org/trunk@31569 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/common.css | 6 +- src/wp-includes/css/jquery-ui-dialog.css | 8 +- src/wp-includes/css/media-views.css | 6 +- src/wp-includes/js/jquery/ui/accordion.js | 17 +++-- src/wp-includes/js/jquery/ui/autocomplete.js | 6 +- src/wp-includes/js/jquery/ui/button.js | 8 +- src/wp-includes/js/jquery/ui/core.js | 8 +- src/wp-includes/js/jquery/ui/datepicker.js | 12 ++- src/wp-includes/js/jquery/ui/dialog.js | 6 +- src/wp-includes/js/jquery/ui/draggable.js | 6 +- src/wp-includes/js/jquery/ui/droppable.js | 6 +- src/wp-includes/js/jquery/ui/effect-blind.js | 4 +- src/wp-includes/js/jquery/ui/effect-bounce.js | 4 +- src/wp-includes/js/jquery/ui/effect-clip.js | 4 +- src/wp-includes/js/jquery/ui/effect-drop.js | 4 +- .../js/jquery/ui/effect-explode.js | 4 +- src/wp-includes/js/jquery/ui/effect-fade.js | 4 +- src/wp-includes/js/jquery/ui/effect-fold.js | 4 +- .../js/jquery/ui/effect-highlight.js | 4 +- src/wp-includes/js/jquery/ui/effect-puff.js | 4 +- .../js/jquery/ui/effect-pulsate.js | 4 +- src/wp-includes/js/jquery/ui/effect-scale.js | 4 +- src/wp-includes/js/jquery/ui/effect-shake.js | 4 +- src/wp-includes/js/jquery/ui/effect-size.js | 4 +- src/wp-includes/js/jquery/ui/effect-slide.js | 4 +- .../js/jquery/ui/effect-transfer.js | 4 +- src/wp-includes/js/jquery/ui/effect.js | 6 +- src/wp-includes/js/jquery/ui/menu.js | 6 +- src/wp-includes/js/jquery/ui/mouse.js | 6 +- src/wp-includes/js/jquery/ui/position.js | 8 +- src/wp-includes/js/jquery/ui/progressbar.js | 6 +- src/wp-includes/js/jquery/ui/resizable.js | 14 ++-- src/wp-includes/js/jquery/ui/selectable.js | 6 +- src/wp-includes/js/jquery/ui/selectmenu.js | 13 ++-- src/wp-includes/js/jquery/ui/slider.js | 28 +++++-- src/wp-includes/js/jquery/ui/sortable.js | 48 ++++++------ src/wp-includes/js/jquery/ui/spinner.js | 6 +- src/wp-includes/js/jquery/ui/tabs.js | 11 +-- src/wp-includes/js/jquery/ui/tooltip.js | 6 +- src/wp-includes/js/jquery/ui/widget.js | 15 ++-- src/wp-includes/script-loader.php | 74 +++++++++---------- 41 files changed, 214 insertions(+), 188 deletions(-) diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css index f3ea54ae4f..300fbfa41c 100644 --- a/src/wp-admin/css/common.css +++ b/src/wp-admin/css/common.css @@ -2848,17 +2848,17 @@ img { } /*! - * jQuery UI Draggable/Sortable 1.11.2 + * jQuery UI Draggable/Sortable 1.11.3 * http://jqueryui.com * - * Copyright 2014 jQuery Foundation and other contributors + * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ .ui-draggable-handle, .ui-sortable-handle { -ms-touch-action: none; - touch-action: none; + touch-action: none; } /* Accordion */ diff --git a/src/wp-includes/css/jquery-ui-dialog.css b/src/wp-includes/css/jquery-ui-dialog.css index 5fdfee440f..9383ad95c2 100644 --- a/src/wp-includes/css/jquery-ui-dialog.css +++ b/src/wp-includes/css/jquery-ui-dialog.css @@ -1,8 +1,8 @@ /*! - * jQuery UI CSS Framework 1.11.2 + * jQuery UI CSS Framework 1.11.3 * http://jqueryui.com * - * Copyright 2014 jQuery Foundation and other contributors + * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * @@ -93,10 +93,10 @@ } /*! - * jQuery UI Resizable 1.11.2 + * jQuery UI Resizable 1.11.3 * http://jqueryui.com * - * Copyright 2014 jQuery Foundation and other contributors + * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ diff --git a/src/wp-includes/css/media-views.css b/src/wp-includes/css/media-views.css index 4a9c823322..d9ea92f775 100644 --- a/src/wp-includes/css/media-views.css +++ b/src/wp-includes/css/media-views.css @@ -105,17 +105,17 @@ } /*! - * jQuery UI Draggable/Sortable 1.11.2 + * jQuery UI Draggable/Sortable 1.11.3 * http://jqueryui.com * - * Copyright 2014 jQuery Foundation and other contributors + * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ .ui-draggable-handle, .ui-sortable-handle { -ms-touch-action: none; - touch-action: none; + touch-action: none; } /** diff --git a/src/wp-includes/js/jquery/ui/accordion.js b/src/wp-includes/js/jquery/ui/accordion.js index 5f799ab503..c8878b6d2a 100644 --- a/src/wp-includes/js/jquery/ui/accordion.js +++ b/src/wp-includes/js/jquery/ui/accordion.js @@ -1,8 +1,8 @@ /*! - * jQuery UI Accordion 1.11.2 + * jQuery UI Accordion 1.11.3 * http://jqueryui.com * - * Copyright 2014 jQuery Foundation and other contributors + * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * @@ -25,7 +25,7 @@ }(function( $ ) { return $.widget( "ui.accordion", { - version: "1.11.2", + version: "1.11.3", options: { active: 0, animate: {}, @@ -483,7 +483,10 @@ return $.widget( "ui.accordion", { toHide.attr({ "aria-hidden": "true" }); - toHide.prev().attr( "aria-selected", "false" ); + toHide.prev().attr({ + "aria-selected": "false", + "aria-expanded": "false" + }); // if we're switching panels, remove the old header from the tab order // if we're opening from collapsed state, remove the previous header from the tab order // if we're collapsing, then keep the collapsing header in the tab order @@ -494,7 +497,7 @@ return $.widget( "ui.accordion", { }); } else if ( toShow.length ) { this.headers.filter(function() { - return $( this ).attr( "tabIndex" ) === 0; + return parseInt( $( this ).attr( "tabIndex" ), 10 ) === 0; }) .attr( "tabIndex", -1 ); } @@ -504,8 +507,8 @@ return $.widget( "ui.accordion", { .prev() .attr({ "aria-selected": "true", - tabIndex: 0, - "aria-expanded": "true" + "aria-expanded": "true", + tabIndex: 0 }); }, diff --git a/src/wp-includes/js/jquery/ui/autocomplete.js b/src/wp-includes/js/jquery/ui/autocomplete.js index a4ebc3c481..7671c7fb03 100644 --- a/src/wp-includes/js/jquery/ui/autocomplete.js +++ b/src/wp-includes/js/jquery/ui/autocomplete.js @@ -1,8 +1,8 @@ /*! - * jQuery UI Autocomplete 1.11.2 + * jQuery UI Autocomplete 1.11.3 * http://jqueryui.com * - * Copyright 2014 jQuery Foundation and other contributors + * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * @@ -27,7 +27,7 @@ }(function( $ ) { $.widget( "ui.autocomplete", { - version: "1.11.2", + version: "1.11.3", defaultElement: "", options: { appendTo: null, diff --git a/src/wp-includes/js/jquery/ui/button.js b/src/wp-includes/js/jquery/ui/button.js index 39b7f42049..d58de5dedc 100644 --- a/src/wp-includes/js/jquery/ui/button.js +++ b/src/wp-includes/js/jquery/ui/button.js @@ -1,8 +1,8 @@ /*! - * jQuery UI Button 1.11.2 + * jQuery UI Button 1.11.3 * http://jqueryui.com * - * Copyright 2014 jQuery Foundation and other contributors + * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * @@ -52,7 +52,7 @@ var lastActive, }; $.widget( "ui.button", { - version: "1.11.2", + version: "1.11.3", defaultElement: "