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