Merge pull request #1937 from KingYes/master

Fxing step return "NaN" in quantity.
This commit is contained in:
Mike Jolley 2012-12-06 07:43:48 -08:00
commit ede8fca597
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ jQuery(document).ready(function($) {
if ( ! currentVal || currentVal == "" || currentVal == "NaN" ) currentVal = 0; if ( ! currentVal || currentVal == "" || currentVal == "NaN" ) currentVal = 0;
if ( max == "" || max == "NaN" ) max = ''; if ( max == "" || max == "NaN" ) max = '';
if ( min == "" || min == "NaN" ) min = 0; if ( min == "" || min == "NaN" ) min = 0;
if ( step == 'any' || step == "" || parseFloat( step ) == "NaN" ) step = 1; if ( step == 'any' || step == "" || step == undefined || parseFloat( step ) == "NaN" ) step = 1;
// Change the value // Change the value
if ( $(this).is('.plus') ) { if ( $(this).is('.plus') ) {