aboutsummaryrefslogtreecommitdiffstats
path: root/themes/default/js/ui/jquery.ui.spinner.js
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2014-06-24 20:16:59 +0000
committerrvelices <rv-github@modusoptimus.com>2014-06-24 20:16:59 +0000
commit09228a746f3a67ea80ab6cc6013f535da8332a64 (patch)
tree15107374e3de6b8da403af5b75f828c7ea77315b /themes/default/js/ui/jquery.ui.spinner.js
parent03a3d1830cf67eb468bf4e48a879d2994055a492 (diff)
upgrade jquery ui from 1.10.1 to 1.10.4
git-svn-id: http://piwigo.org/svn/trunk@28780 68402e56-0260-453c-a942-63ccdbb3a9ee
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 );