Authored by 郝肖肖

清除失效商品 事件委托

... ... @@ -107,6 +107,9 @@ $(function() {
});
}
return false;
}).delegate('#remove_invalid', 'click', function() {
// 清除失效商品
Cart.removeInvalid();
});
// 商品删除模块
... ... @@ -143,10 +146,6 @@ $(function() {
});
});
$('#remove_invalid').off().on('click', function() {
Cart.removeInvalid();
});
// 变动商品数量
Stepper.init();
... ...
... ... @@ -221,7 +221,7 @@
</div>
<div id="remove_selected" class="action hoverable">删除选中的商品</div>
<div id="send_favorite" class="action hoverable">移入收藏夹</div>
<div id="clear_invalid_all" class="action hoverable">清除失效商品</div>
<div id="remove_invalid" class="action hoverable">清除失效商品</div>
<div class="selected-num">已选<span>{{selectedNum}}</span></div>
<div class="checkout-total">
<div class="total-title">商品金额:</div>
... ...