aboutsummaryrefslogtreecommitdiffstats
path: root/themes/default/js/ui/jquery.ui.spinner.js
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/js/ui/jquery.ui.spinner.js')
-rw-r--r--themes/default/js/ui/jquery.ui.spinner.js15
1 files changed, 10 insertions, 5 deletions
diff --git a/themes/default/js/ui/jquery.ui.spinner.js b/themes/default/js/ui/jquery.ui.spinner.js
index 95f253f4c..d61255690 100644
--- a/themes/default/js/ui/jquery.ui.spinner.js
+++ b/themes/default/js/ui/jquery.ui.spinner.js
@@ -1,8 +1,8 @@
/*!
- * jQuery UI Spinner 1.10.1
+ * jQuery UI Spinner 1.10.4
* http://jqueryui.com
*
- * Copyright 2013 jQuery Foundation and other contributors
+ * Copyright 2014 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
@@ -27,7 +27,7 @@ function modifier( fn ) {
}
$.widget( "ui.spinner", {
- version: "1.10.1",
+ version: "1.10.4",
defaultElement: "<input>",
widgetEventPrefix: "spin",
options: {
@@ -55,8 +55,12 @@ $.widget( "ui.spinner", {
this._setOption( "min", this.options.min );
this._setOption( "step", this.options.step );
- // format the value, but don't constrain
- this._value( this.element.val(), true );
+ // Only format if there is a value, prevents the field from being marked
+ // as invalid in Firefox, see #9573.
+ if ( this.value() !== "" ) {
+ // Format the value, but don't constrain.
+ this._value( this.element.val(), true );
+ }
this._draw();
this._on( this._events );
@@ -102,6 +106,7 @@ $.widget( "ui.spinner", {
return;
}
+ this._stop();
this._refresh();
if ( this.previous !== this.element.val() ) {
this._trigger( "change", event );