--- a/wp/wp-includes/js/jquery/ui/spinner.js Thu Sep 29 08:06:27 2022 +0200
+++ b/wp/wp-includes/js/jquery/ui/spinner.js Fri Sep 05 18:40:08 2025 +0200
@@ -1,17 +1,17 @@
/*!
- * jQuery UI Spinner 1.13.1
- * http://jqueryui.com
+ * jQuery UI Spinner 1.13.3
+ * https://jqueryui.com
*
- * Copyright jQuery Foundation and other contributors
+ * Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
- * http://jquery.org/license
+ * https://jquery.org/license
*/
//>>label: Spinner
//>>group: Widgets
//>>description: Displays buttons to easily input numbers via the keyboard or mouse.
-//>>docs: http://api.jqueryui.com/spinner/
-//>>demos: http://jqueryui.com/spinner/
+//>>docs: https://api.jqueryui.com/spinner/
+//>>demos: https://jqueryui.com/spinner/
//>>css.structure: ../../themes/base/core.css
//>>css.structure: ../../themes/base/spinner.css
//>>css.theme: ../../themes/base/theme.css
@@ -25,7 +25,10 @@
define( [
"jquery",
"./button",
- "./core"
+ "../version",
+ "../keycode",
+ "../safe-active-element",
+ "../widget"
], factory );
} else {
@@ -47,7 +50,7 @@
}
$.widget( "ui.spinner", {
- version: "1.13.1",
+ version: "1.13.3",
defaultElement: "<input>",
widgetEventPrefix: "spin",
options: {
@@ -234,10 +237,10 @@
.wrap( "<span>" )
.parent()
- // Add buttons
- .append(
- "<a></a><a></a>"
- );
+ // Add buttons
+ .append(
+ "<a></a><a></a>"
+ );
},
_draw: function() {
@@ -275,7 +278,7 @@
// IE 6 doesn't understand height: 50% for the buttons
// unless the wrapper has an explicit height
if ( this.buttons.height() > Math.ceil( this.uiSpinner.height() * 0.5 ) &&
- this.uiSpinner.height() > 0 ) {
+ this.uiSpinner.height() > 0 ) {
this.uiSpinner.height( this.uiSpinner.height() );
}
},
@@ -285,18 +288,18 @@
keyCode = $.ui.keyCode;
switch ( event.keyCode ) {
- case keyCode.UP:
- this._repeat( null, 1, event );
- return true;
- case keyCode.DOWN:
- this._repeat( null, -1, event );
- return true;
- case keyCode.PAGE_UP:
- this._repeat( null, options.page, event );
- return true;
- case keyCode.PAGE_DOWN:
- this._repeat( null, -options.page, event );
- return true;
+ case keyCode.UP:
+ this._repeat( null, 1, event );
+ return true;
+ case keyCode.DOWN:
+ this._repeat( null, -1, event );
+ return true;
+ case keyCode.PAGE_UP:
+ this._repeat( null, options.page, event );
+ return true;
+ case keyCode.PAGE_DOWN:
+ this._repeat( null, -options.page, event );
+ return true;
}
return false;
@@ -561,8 +564,8 @@
.wrap( this._uiSpinnerHtml() )
.parent()
- // Add buttons
- .append( this._buttonHtml() );
+ // Add buttons
+ .append( this._buttonHtml() );
},
_uiSpinnerHtml: function() {
return "<span>";