Commit cb184636 authored by Ulises Morales Ramírez's avatar Ulises Morales Ramírez

Merge remote-tracking branch 'origin/dev' into dev

parents 3333df0e 4e692a1c
...@@ -70,7 +70,6 @@ var statusUpdateCart = false; ...@@ -70,7 +70,6 @@ var statusUpdateCart = false;
function updateCart(){ function updateCart(){
if (statusUpdateCart == false){ if (statusUpdateCart == false){
statusUpdateCart = true; statusUpdateCart = true;
showCarProductsTabPanel();
$("#product-list-cart").empty(); $("#product-list-cart").empty();
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
...@@ -102,6 +101,8 @@ function updateCart(){ ...@@ -102,6 +101,8 @@ function updateCart(){
document.querySelector('#' + id).appendChild(clone_2); document.querySelector('#' + id).appendChild(clone_2);
}); });
}); });
hideWaitingModal();
showCarProductsTabPanel();
statusUpdateCart = false; statusUpdateCart = false;
} }
}); });
...@@ -545,6 +546,7 @@ $(document).ready(function () { ...@@ -545,6 +546,7 @@ $(document).ready(function () {
success: function () { success: function () {
cartProductList = []; cartProductList = [];
productUUIDListCart.push.apply(productUUIDListCart, productsToObtain); productUUIDListCart.push.apply(productUUIDListCart, productsToObtain);
showWaitingModal()
updateCart(); 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