...
|
...
|
@@ -77,7 +77,7 @@ var Stepper = { |
|
|
currNum = $input.val();
|
|
|
plus = $input.parent().next();
|
|
|
|
|
|
if (!$target.hasClass('disable')) {
|
|
|
if (!$target.hasClass('disable') && !$target.parents('.cart-pro-list').hasClass('invalid-pros')) {
|
|
|
sku = $.parseJSON($target.parents('ul').children().first().attr('data-product_info')).product_sku;
|
|
|
goodType = $target.parent().attr('data-producttype');
|
|
|
_this.decrease(goodType, sku, currNum, function(num, changed) {
|
...
|
...
|
@@ -103,7 +103,7 @@ var Stepper = { |
|
|
currNum = $input.val();
|
|
|
minus = $input.parent().prev();
|
|
|
|
|
|
if (!$target.hasClass('disable')) {
|
|
|
if (!$target.hasClass('disable') && !$target.parents('.cart-pro-list').hasClass('invalid-pros')) {
|
|
|
sku = $.parseJSON($target.parents('ul').children().first().attr('data-product_info')).product_sku;
|
|
|
goodType = $target.parent().attr('data-producttype');
|
|
|
_this.increase(goodType, sku, currNum, function(num, changed, overflow) {
|
...
|
...
|
|