loading agregado al boton de add-to-cart

parent 415d4503
......@@ -70,7 +70,6 @@ var statusUpdateCart = false;
function updateCart(){
if (statusUpdateCart == false){
statusUpdateCart = true;
showCarProductsTabPanel();
$("#product-list-cart").empty();
$.ajax({
type: 'POST',
......@@ -102,6 +101,8 @@ function updateCart(){
document.querySelector('#' + id).appendChild(clone_2);
});
});
hideWaitingModal();
showCarProductsTabPanel();
statusUpdateCart = false;
}
});
......@@ -545,6 +546,7 @@ $(document).ready(function () {
success: function () {
cartProductList = [];
productUUIDListCart.push.apply(productUUIDListCart, productsToObtain);
showWaitingModal()
updateCart();
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment