vendor/assets/javascripts/jquery/ui/jquery-ui.js in yano-jquery-rails-2.1.3 vs vendor/assets/javascripts/jquery/ui/jquery-ui.js in yano-jquery-rails-2.1.4
- old
+ new
@@ -1,6 +1,6 @@
-/*! jQuery UI - v1.12.0 - 2016-07-08
+/*! jQuery UI - v1.12.1 - 2016-09-14
* http://jqueryui.com
* Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-1-7.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */
(function( factory ) {
@@ -15,15 +15,15 @@
}
}(function( $ ) {
$.ui = $.ui || {};
-var version = $.ui.version = "1.12.0";
+var version = $.ui.version = "1.12.1";
/*!
- * jQuery UI Widget 1.12.0
+ * jQuery UI Widget 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -225,39 +225,46 @@
var isMethodCall = typeof options === "string";
var args = widgetSlice.call( arguments, 1 );
var returnValue = this;
if ( isMethodCall ) {
- this.each( function() {
- var methodValue;
- var instance = $.data( this, fullName );
- if ( options === "instance" ) {
- returnValue = instance;
- return false;
- }
+ // If this is an empty collection, we need to have the instance method
+ // return undefined instead of the jQuery instance
+ if ( !this.length && options === "instance" ) {
+ returnValue = undefined;
+ } else {
+ this.each( function() {
+ var methodValue;
+ var instance = $.data( this, fullName );
- if ( !instance ) {
- return $.error( "cannot call methods on " + name +
- " prior to initialization; " +
- "attempted to call method '" + options + "'" );
- }
+ if ( options === "instance" ) {
+ returnValue = instance;
+ return false;
+ }
- if ( !$.isFunction( instance[ options ] ) || options.charAt( 0 ) === "_" ) {
- return $.error( "no such method '" + options + "' for " + name +
- " widget instance" );
- }
+ if ( !instance ) {
+ return $.error( "cannot call methods on " + name +
+ " prior to initialization; " +
+ "attempted to call method '" + options + "'" );
+ }
- methodValue = instance[ options ].apply( instance, args );
+ if ( !$.isFunction( instance[ options ] ) || options.charAt( 0 ) === "_" ) {
+ return $.error( "no such method '" + options + "' for " + name +
+ " widget instance" );
+ }
- if ( methodValue !== instance && methodValue !== undefined ) {
- returnValue = methodValue && methodValue.jquery ?
- returnValue.pushStack( methodValue.get() ) :
- methodValue;
- return false;
- }
- } );
+ methodValue = instance[ options ].apply( instance, args );
+
+ if ( methodValue !== instance && methodValue !== undefined ) {
+ returnValue = methodValue && methodValue.jquery ?
+ returnValue.pushStack( methodValue.get() ) :
+ methodValue;
+ return false;
+ }
+ } );
+ }
} else {
// Allow multiple hashes to be passed on init
if ( args.length ) {
options = $.widget.extend.apply( null, [ options ].concat( args ) );
@@ -517,20 +524,33 @@
full.push( options.classes[ classes[ i ] ] );
}
}
}
+ this._on( options.element, {
+ "remove": "_untrackClassesElement"
+ } );
+
if ( options.keys ) {
processClassString( options.keys.match( /\S+/g ) || [], true );
}
if ( options.extra ) {
processClassString( options.extra.match( /\S+/g ) || [] );
}
return full.join( " " );
},
+ _untrackClassesElement: function( event ) {
+ var that = this;
+ $.each( that.classesElementLookup, function( key, value ) {
+ if ( $.inArray( event.target, value ) !== -1 ) {
+ that.classesElementLookup[ key ] = $( value.not( event.target ).get() );
+ }
+ } );
+ },
+
_removeClass: function( element, keys, extra ) {
return this._toggleClass( element, keys, extra, false );
},
_addClass: function( element, keys, extra ) {
@@ -722,11 +742,11 @@
var widget = $.widget;
/*!
- * jQuery UI Position 1.12.0
+ * jQuery UI Position 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -740,41 +760,20 @@
//>>docs: http://api.jqueryui.com/position/
//>>demos: http://jqueryui.com/position/
( function() {
-var cachedScrollbarWidth, supportsOffsetFractions,
+var cachedScrollbarWidth,
max = Math.max,
abs = Math.abs,
- round = Math.round,
rhorizontal = /left|center|right/,
rvertical = /top|center|bottom/,
roffset = /[\+\-]\d+(\.[\d]+)?%?/,
rposition = /^\w+/,
rpercent = /%$/,
_position = $.fn.position;
-// Support: IE <=9 only
-supportsOffsetFractions = function() {
- var element = $( "<div>" )
- .css( "position", "absolute" )
- .appendTo( "body" )
- .offset( {
- top: 1.5,
- left: 1.5
- } ),
- support = element.offset().top === 1.5;
-
- element.remove();
-
- supportsOffsetFractions = function() {
- return support;
- };
-
- return support;
-};
-
function getOffsets( offsets, width, height ) {
return [
parseFloat( offsets[ 0 ] ) * ( rpercent.test( offsets[ 0 ] ) ? width / 100 : 1 ),
parseFloat( offsets[ 1 ] ) * ( rpercent.test( offsets[ 1 ] ) ? height / 100 : 1 )
];
@@ -979,16 +978,10 @@
}
position.left += myOffset[ 0 ];
position.top += myOffset[ 1 ];
- // If the browser doesn't support fractions, then round for consistent results
- if ( !supportsOffsetFractions() ) {
- position.left = round( position.left );
- position.top = round( position.top );
- }
-
collisionPosition = {
marginLeft: marginLeft,
marginTop: marginTop
};
@@ -1237,11 +1230,11 @@
var position = $.ui.position;
/*!
- * jQuery UI :data 1.12.0
+ * jQuery UI :data 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -1266,11 +1259,11 @@
return !!$.data( elem, match[ 3 ] );
}
} );
/*!
- * jQuery UI Disable Selection 1.12.0
+ * jQuery UI Disable Selection 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -1302,11 +1295,11 @@
}
} );
/*!
- * jQuery UI Effects 1.12.0
+ * jQuery UI Effects 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -2361,11 +2354,11 @@
}
} );
}
$.extend( $.effects, {
- version: "1.12.0",
+ version: "1.12.1",
define: function( name, mode, effect ) {
if ( !effect ) {
effect = mode;
mode = "effect";
@@ -2927,11 +2920,11 @@
var effect = $.effects;
/*!
- * jQuery UI Effects Blind 1.12.0
+ * jQuery UI Effects Blind 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -2983,11 +2976,11 @@
} );
} );
/*!
- * jQuery UI Effects Bounce 1.12.0
+ * jQuery UI Effects Bounce 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -3079,11 +3072,11 @@
$.effects.unshift( element, queuelen, anims + 1 );
} );
/*!
- * jQuery UI Effects Clip 1.12.0
+ * jQuery UI Effects Clip 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -3130,11 +3123,11 @@
} );
/*!
- * jQuery UI Effects Drop 1.12.0
+ * jQuery UI Effects Drop 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -3185,11 +3178,11 @@
} );
} );
/*!
- * jQuery UI Effects Explode 1.12.0
+ * jQuery UI Effects Explode 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -3282,11 +3275,11 @@
}
} );
/*!
- * jQuery UI Effects Fade 1.12.0
+ * jQuery UI Effects Fade 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -3315,11 +3308,11 @@
} );
} );
/*!
- * jQuery UI Effects Fold 1.12.0
+ * jQuery UI Effects Fold 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -3390,11 +3383,11 @@
$.effects.unshift( element, queuelen, 4 );
} );
/*!
- * jQuery UI Effects Highlight 1.12.0
+ * jQuery UI Effects Highlight 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -3433,11 +3426,11 @@
} );
} );
/*!
- * jQuery UI Effects Size 1.12.0
+ * jQuery UI Effects Size 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -3610,11 +3603,11 @@
} );
/*!
- * jQuery UI Effects Scale 1.12.0
+ * jQuery UI Effects Scale 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -3651,11 +3644,11 @@
$.effects.effect.size.call( this, newOptions, done );
} );
/*!
- * jQuery UI Effects Puff 1.12.0
+ * jQuery UI Effects Puff 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -3678,11 +3671,11 @@
$.effects.effect.scale.call( this, newOptions, done );
} );
/*!
- * jQuery UI Effects Pulsate 1.12.0
+ * jQuery UI Effects Pulsate 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -3728,11 +3721,11 @@
$.effects.unshift( element, queuelen, anims + 1 );
} );
/*!
- * jQuery UI Effects Shake 1.12.0
+ * jQuery UI Effects Shake 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -3788,11 +3781,11 @@
$.effects.unshift( element, queuelen, anims + 1 );
} );
/*!
- * jQuery UI Effects Slide 1.12.0
+ * jQuery UI Effects Slide 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -3850,11 +3843,11 @@
} );
} );
/*!
- * jQuery UI Effects Transfer 1.12.0
+ * jQuery UI Effects Transfer 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -3876,11 +3869,11 @@
}
var effectsEffectTransfer = effect;
/*!
- * jQuery UI Focusable 1.12.0
+ * jQuery UI Focusable 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -3960,11 +3953,11 @@
return typeof this[ 0 ].form === "string" ? this.closest( "form" ) : $( this[ 0 ].form );
};
/*!
- * jQuery UI Form Reset Mixin 1.12.0
+ * jQuery UI Form Reset Mixin 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -4023,11 +4016,11 @@
}
};
/*!
- * jQuery UI Support for jQuery core 1.7.x 1.12.0
+ * jQuery UI Support for jQuery core 1.7.x 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -4102,11 +4095,11 @@
};
}
;
/*!
- * jQuery UI Keycode 1.12.0
+ * jQuery UI Keycode 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -4148,11 +4141,11 @@
};
} )();
/*!
- * jQuery UI Labels 1.12.0
+ * jQuery UI Labels 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -4200,11 +4193,11 @@
return this.pushStack( labels );
};
/*!
- * jQuery UI Scroll Parent 1.12.0
+ * jQuery UI Scroll Parent 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -4235,11 +4228,11 @@
scrollParent;
};
/*!
- * jQuery UI Tabbable 1.12.0
+ * jQuery UI Tabbable 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -4260,11 +4253,11 @@
}
} );
/*!
- * jQuery UI Unique ID 1.12.0
+ * jQuery UI Unique ID 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -4299,11 +4292,11 @@
}
} );
/*!
- * jQuery UI Accordion 1.12.0
+ * jQuery UI Accordion 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -4321,11 +4314,11 @@
//>>css.theme: ../../themes/base/theme.css
var widgetsAccordion = $.widget( "ui.accordion", {
- version: "1.12.0",
+ version: "1.12.1",
options: {
active: 0,
animate: {},
classes: {
"ui-accordion-header": "ui-corner-top",
@@ -4926,11 +4919,11 @@
return activeElement;
};
/*!
- * jQuery UI Menu 1.12.0
+ * jQuery UI Menu 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -4946,11 +4939,11 @@
//>>css.theme: ../../themes/base/theme.css
var widgetsMenu = $.widget( "ui.menu", {
- version: "1.12.0",
+ version: "1.12.1",
defaultElement: "<ul>",
delay: 300,
options: {
icons: {
submenu: "ui-icon-caret-1-e"
@@ -5145,13 +5138,16 @@
this.collapse( event );
break;
default:
preventDefault = false;
prev = this.previousFilter || "";
- character = String.fromCharCode( event.keyCode );
skip = false;
+ // Support number pad values
+ character = event.keyCode >= 96 && event.keyCode <= 105 ?
+ ( event.keyCode - 96 ).toString() : String.fromCharCode( event.keyCode );
+
clearTimeout( this.filterTimer );
if ( character === prev ) {
skip = true;
} else {
@@ -5578,11 +5574,11 @@
}
} );
/*!
- * jQuery UI Autocomplete 1.12.0
+ * jQuery UI Autocomplete 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -5598,11 +5594,11 @@
//>>css.theme: ../../themes/base/theme.css
$.widget( "ui.autocomplete", {
- version: "1.12.0",
+ version: "1.12.1",
defaultElement: "<input>",
options: {
appendTo: null,
autoFocus: false,
delay: 300,
@@ -6242,11 +6238,11 @@
var widgetsAutocomplete = $.ui.autocomplete;
/*!
- * jQuery UI Controlgroup 1.12.0
+ * jQuery UI Controlgroup 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -6263,11 +6259,11 @@
var controlgroupCornerRegex = /ui-corner-([a-z]){2,6}/g;
var widgetsControlgroup = $.widget( "ui.controlgroup", {
- version: "1.12.0",
+ version: "1.12.1",
defaultElement: "<div>",
options: {
direction: "horizontal",
disabled: null,
onlyVisible: true,
@@ -6339,10 +6335,12 @@
// We assume everything is in the middle to start because we can't determine
// first / last elements until all enhancments are done.
if ( that[ "_" + widget + "Options" ] ) {
options = that[ "_" + widget + "Options" ]( "middle" );
+ } else {
+ options = { classes: {} };
}
// Find instances of this widget inside controlgroup and init them
that.element
.find( selector )
@@ -6462,11 +6460,11 @@
_resolveClassesValues: function( classes, instance ) {
var result = {};
$.each( classes, function( key ) {
var current = instance.options.classes[ key ] || "";
- current = current.replace( controlgroupCornerRegex, "" ).trim();
+ current = $.trim( current.replace( controlgroupCornerRegex, "" ) );
result[ key ] = ( current + " " + classes[ key ] ).replace( /\s+/g, " " );
} );
return result;
},
@@ -6525,11 +6523,11 @@
}
}
} );
/*!
- * jQuery UI Checkboxradio 1.12.0
+ * jQuery UI Checkboxradio 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -6546,11 +6544,11 @@
//>>css.theme: ../../themes/base/theme.css
$.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
- version: "1.12.0",
+ version: "1.12.1",
options: {
disabled: null,
label: null,
icon: true,
classes: {
@@ -6579,11 +6577,11 @@
this.originalLabel = "";
// We need to get the label text but this may also need to make sure it does not contain the
// input itself.
- this.label.contents().not( this.element ).each( function() {
+ this.label.contents().not( this.element[ 0 ] ).each( function() {
// The label contents could be text, html, or a mix. We concat each element to get a
// string representation of the label, without the input as part of it.
that.originalLabel += this.nodeType === 3 ? $( this ).text() : this.outerHTML;
} );
@@ -6762,11 +6760,19 @@
},
_updateLabel: function() {
// Remove the contents of the label ( minus the icon, icon space, and input )
- this.label.contents().not( this.element.add( this.icon ).add( this.iconSpace ) ).remove();
+ var contents = this.label.contents().not( this.element[ 0 ] );
+ if ( this.icon ) {
+ contents = contents.not( this.icon[ 0 ] );
+ }
+ if ( this.iconSpace ) {
+ contents = contents.not( this.iconSpace[ 0 ] );
+ }
+ contents.remove();
+
this.label.append( this.options.label );
},
refresh: function() {
var checked = this.element[ 0 ].checked,
@@ -6787,11 +6793,11 @@
var widgetsCheckboxradio = $.ui.checkboxradio;
/*!
- * jQuery UI Button 1.12.0
+ * jQuery UI Button 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -6807,11 +6813,11 @@
//>>css.theme: ../../themes/base/theme.css
$.widget( "ui.button", {
- version: "1.12.0",
+ version: "1.12.1",
defaultElement: "<button>",
options: {
classes: {
"ui-button": "ui-corner-all"
},
@@ -7155,11 +7161,11 @@
// jscs:disable maximumLineLength
/* jscs:disable requireCamelCaseOrUpperCaseIdentifiers */
/*!
- * jQuery UI Datepicker 1.12.0
+ * jQuery UI Datepicker 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -7174,11 +7180,11 @@
//>>css.structure: ../../themes/base/datepicker.css
//>>css.theme: ../../themes/base/theme.css
-$.extend( $.ui, { datepicker: { version: "1.12.0" } } );
+$.extend( $.ui, { datepicker: { version: "1.12.1" } } );
var datepicker_instActive;
function datepicker_getZindex( elem ) {
var position, value;
@@ -9253,22 +9259,22 @@
};
$.datepicker = new Datepicker(); // singleton instance
$.datepicker.initialized = false;
$.datepicker.uuid = new Date().getTime();
-$.datepicker.version = "1.12.0";
+$.datepicker.version = "1.12.1";
var widgetsDatepicker = $.datepicker;
// This file is deprecated
var ie = $.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
/*!
- * jQuery UI Mouse 1.12.0
+ * jQuery UI Mouse 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -9285,11 +9291,11 @@
$( document ).on( "mouseup", function() {
mouseHandled = false;
} );
var widgetsMouse = $.widget( "ui.mouse", {
- version: "1.12.0",
+ version: "1.12.1",
options: {
cancel: "input, textarea, button, select, option",
distance: 1,
delay: 0
},
@@ -9520,11 +9526,11 @@
}
};
/*!
- * jQuery UI Draggable 1.12.0
+ * jQuery UI Draggable 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -9538,11 +9544,11 @@
//>>css.structure: ../../themes/base/draggable.css
$.widget( "ui.draggable", $.ui.mouse, {
- version: "1.12.0",
+ version: "1.12.1",
widgetEventPrefix: "drag",
options: {
addClasses: true,
appendTo: "parent",
axis: false,
@@ -9604,12 +9610,10 @@
},
_mouseCapture: function( event ) {
var o = this.options;
- this._blurActiveElement( event );
-
// Among others, prevent a drag on a resizable-handle
if ( this.helper || o.disabled ||
$( event.target ).closest( ".ui-resizable-handle" ).length > 0 ) {
return false;
}
@@ -9618,10 +9622,12 @@
this.handle = this._getHandle( event );
if ( !this.handle ) {
return false;
}
+ this._blurActiveElement( event );
+
this._blockFrames( o.iframeFix === true ? "iframe" : o.iframeFix );
return true;
},
@@ -9648,15 +9654,14 @@
_blurActiveElement: function( event ) {
var activeElement = $.ui.safeActiveElement( this.document[ 0 ] ),
target = $( event.target );
- // Only blur if the event occurred on an element that is:
- // 1) within the draggable handle
- // 2) but not within the currently focused element
+ // Don't blur if the event occurred on an element that is within
+ // the currently focused element
// See #10527, #12472
- if ( this._getHandle( event ) && target.closest( activeElement ).length ) {
+ if ( target.closest( activeElement ).length ) {
return;
}
// Blur any element that currently has focus, see #4261
$.ui.safeBlur( activeElement );
@@ -10751,11 +10756,11 @@
var widgetsDraggable = $.ui.draggable;
/*!
- * jQuery UI Resizable 1.12.0
+ * jQuery UI Resizable 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -10771,11 +10776,11 @@
//>>css.theme: ../../themes/base/theme.css
$.widget( "ui.resizable", $.ui.mouse, {
- version: "1.12.0",
+ version: "1.12.1",
widgetEventPrefix: "resize",
options: {
alsoResize: false,
animate: false,
animateDuration: "slow",
@@ -11935,11 +11940,11 @@
var widgetsResizable = $.ui.resizable;
/*!
- * jQuery UI Dialog 1.12.0
+ * jQuery UI Dialog 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -11955,11 +11960,11 @@
//>>css.theme: ../../themes/base/theme.css
$.widget( "ui.dialog", {
- version: "1.12.0",
+ version: "1.12.1",
options: {
appendTo: "body",
autoOpen: true,
buttons: [],
classes: {
@@ -12411,18 +12416,28 @@
// Change the context for the click callback to be the main element
click = props.click;
buttonOptions = {
icon: props.icon,
iconPosition: props.iconPosition,
- showLabel: props.showLabel
+ showLabel: props.showLabel,
+
+ // Deprecated options
+ icons: props.icons,
+ text: props.text
};
delete props.click;
delete props.icon;
delete props.iconPosition;
delete props.showLabel;
+ // Deprecated options
+ delete props.icons;
+ if ( typeof props.text === "boolean" ) {
+ delete props.text;
+ }
+
$( "<button></button>", props )
.button( buttonOptions )
.appendTo( that.uiButtonSet )
.on( "click", function() {
click.apply( that.element[ 0 ], arguments );
@@ -12840,11 +12855,11 @@
var widgetsDialog = $.ui.dialog;
/*!
- * jQuery UI Droppable 1.12.0
+ * jQuery UI Droppable 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -12857,11 +12872,11 @@
//>>demos: http://jqueryui.com/droppable/
$.widget( "ui.droppable", {
- version: "1.12.0",
+ version: "1.12.1",
widgetEventPrefix: "drop",
options: {
accept: "*",
addClasses: true,
greedy: false,
@@ -13321,11 +13336,11 @@
var widgetsDroppable = $.ui.droppable;
/*!
- * jQuery UI Progressbar 1.12.0
+ * jQuery UI Progressbar 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -13343,11 +13358,11 @@
//>>css.theme: ../../themes/base/theme.css
var widgetsProgressbar = $.widget( "ui.progressbar", {
- version: "1.12.0",
+ version: "1.12.1",
options: {
classes: {
"ui-progressbar": "ui-corner-all",
"ui-progressbar-value": "ui-corner-left",
"ui-progressbar-complete": "ui-corner-right"
@@ -13485,11 +13500,11 @@
}
} );
/*!
- * jQuery UI Selectable 1.12.0
+ * jQuery UI Selectable 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -13503,11 +13518,11 @@
//>>css.structure: ../../themes/base/selectable.css
var widgetsSelectable = $.widget( "ui.selectable", $.ui.mouse, {
- version: "1.12.0",
+ version: "1.12.1",
options: {
appendTo: "body",
autoRefresh: true,
distance: 0,
filter: "*",
@@ -13780,11 +13795,11 @@
} );
/*!
- * jQuery UI Selectmenu 1.12.0
+ * jQuery UI Selectmenu 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -13802,11 +13817,11 @@
//>>css.theme: ../../themes/base/theme.css
var widgetsSelectmenu = $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
- version: "1.12.0",
+ version: "1.12.1",
defaultElement: "<select>",
options: {
appendTo: null,
classes: {
"ui-selectmenu-button-open": "ui-corner-top",
@@ -14446,11 +14461,11 @@
}
} ] );
/*!
- * jQuery UI Slider 1.12.0
+ * jQuery UI Slider 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -14466,11 +14481,11 @@
//>>css.theme: ../../themes/base/theme.css
var widgetsSlider = $.widget( "ui.slider", $.ui.mouse, {
- version: "1.12.0",
+ version: "1.12.1",
widgetEventPrefix: "slide",
options: {
animate: false,
classes: {
@@ -14548,11 +14563,13 @@
this._addClass( this.handles, "ui-slider-handle", "ui-state-default" );
this.handle = this.handles.eq( 0 );
this.handles.each( function( i ) {
- $( this ).data( "ui-slider-handle-index", i );
+ $( this )
+ .data( "ui-slider-handle-index", i )
+ .attr( "tabIndex", 0 );
} );
},
_createRange: function() {
var options = this.options;
@@ -15180,11 +15197,11 @@
}
} );
/*!
- * jQuery UI Sortable 1.12.0
+ * jQuery UI Sortable 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -15198,11 +15215,11 @@
//>>css.structure: ../../themes/base/sortable.css
var widgetsSortable = $.widget( "ui.sortable", $.ui.mouse, {
- version: "1.12.0",
+ version: "1.12.1",
widgetEventPrefix: "sort",
ready: false,
options: {
appendTo: "parent",
axis: false,
@@ -15681,11 +15698,11 @@
cancel: function() {
if ( this.dragging ) {
- this._mouseUp( { target: null } );
+ this._mouseUp( new $.Event( "mouseup", { target: null } ) );
if ( this.options.helper === "original" ) {
this.currentItem.css( this._storedCSS );
this._removeClass( this.currentItem, "ui-sortable-helper" );
} else {
@@ -16716,11 +16733,11 @@
} );
/*!
- * jQuery UI Spinner 1.12.0
+ * jQuery UI Spinner 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -16747,11 +16764,11 @@
}
};
}
$.widget( "ui.spinner", {
- version: "1.12.0",
+ version: "1.12.1",
defaultElement: "<input>",
widgetEventPrefix: "spin",
options: {
classes: {
"ui-spinner": "ui-corner-all",
@@ -17274,11 +17291,11 @@
var widgetsSpinner = $.ui.spinner;
/*!
- * jQuery UI Tabs 1.12.0
+ * jQuery UI Tabs 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -17294,11 +17311,11 @@
//>>css.theme: ../../themes/base/theme.css
$.widget( "ui.tabs", {
- version: "1.12.0",
+ version: "1.12.1",
delay: 300,
options: {
active: null,
classes: {
"ui-tabs": "ui-corner-all",
@@ -18146,11 +18163,14 @@
},
_ajaxSettings: function( anchor, event, eventData ) {
var that = this;
return {
- url: anchor.attr( "href" ),
+
+ // Support: IE <11 only
+ // Strip any hash that exists to prevent errors with the Ajax request
+ url: anchor.attr( "href" ).replace( /#.*$/, "" ),
beforeSend: function( jqXHR, settings ) {
return that._trigger( "beforeLoad", event,
$.extend( { jqXHR: jqXHR, ajaxSettings: settings }, eventData ) );
}
};
@@ -18177,11 +18197,11 @@
var widgetsTabs = $.ui.tabs;
/*!
- * jQuery UI Tooltip 1.12.0
+ * jQuery UI Tooltip 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
@@ -18197,10 +18217,10 @@
//>>css.theme: ../../themes/base/theme.css
$.widget( "ui.tooltip", {
- version: "1.12.0",
+ version: "1.12.1",
options: {
classes: {
"ui-tooltip": "ui-corner-all ui-widget-shadow"
},
content: function() {
\ No newline at end of file