diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-08-13 19:05:04 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-08-13 19:05:04 -0400 |
commit | 1aea0ff4b83d3bc3242767d4c5a87983b4b47839 (patch) | |
tree | 2c8eb9c75d6b4fc44442a7dc1603cba11bad82da /demos/spinner | |
parent | 257021b1af4f5414fb71ada695d86bd51bb5dc04 (diff) | |
download | jquery-ui-1aea0ff4b83d3bc3242767d4c5a87983b4b47839.tar.gz jquery-ui-1aea0ff4b83d3bc3242767d4c5a87983b4b47839.zip |
Spinner: Removed value option. Don't change empty values to zero on init. Don't enforce min/max on blur.
Diffstat (limited to 'demos/spinner')
-rw-r--r-- | demos/spinner/time.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/demos/spinner/time.html b/demos/spinner/time.html index 7fc1e26ce..175407f4a 100644 --- a/demos/spinner/time.html +++ b/demos/spinner/time.html @@ -24,13 +24,17 @@ _parse: function( value ) { if ( typeof value === "string" ) { + // already a timestamp + if ( Number( value ) == value ) { + return Number( value ); + } return +Globalize.parseDate( value ); } return value; }, - _format: function() { - return Globalize.format( new Date(this.options.value), "t" ); + _format: function( value ) { + return Globalize.format( new Date(value), "t" ); } }); |