Showing
1 changed file
with
4 additions
and
7 deletions
@@ -191,14 +191,11 @@ function bottomCheckBoxHandeler(isSelected, type, handlerAfterTouch) { | @@ -191,14 +191,11 @@ function bottomCheckBoxHandeler(isSelected, type, handlerAfterTouch) { | ||
191 | //全选按钮点击事件 | 191 | //全选按钮点击事件 |
192 | $selectAllBtn.on('touchend', function() { | 192 | $selectAllBtn.on('touchend', function() { |
193 | var isSelect = $(this).hasClass('icon-cb-checked'); | 193 | var isSelect = $(this).hasClass('icon-cb-checked'); |
194 | - | ||
195 | - if (!isSelect) { | ||
196 | - if ($('.low-stocks').length > 0) { | ||
197 | - tip.show('所选商品中含有库存不足的商品'); | ||
198 | - return false; | ||
199 | - } | ||
200 | - } | ||
201 | 194 | ||
195 | + if (!isSelect && $('.low-stocks').length > 0) { | ||
196 | + tip.show('所选商品中含有库存不足的商品'); | ||
197 | + return false; | ||
198 | + } | ||
202 | bottomCheckBoxHandeler(isSelect, $('#cartType').val(), didUpdateAllGoodsCheckStatus); | 199 | bottomCheckBoxHandeler(isSelect, $('#cartType').val(), didUpdateAllGoodsCheckStatus); |
203 | }); | 200 | }); |
204 | 201 |
-
Please register or login to post a comment