diff --git a/frontend/web/js/product.js b/frontend/web/js/product.js index 7b86597..a927ba6 100644 --- a/frontend/web/js/product.js +++ b/frontend/web/js/product.js @@ -24,7 +24,10 @@ $('#order-product').click(function (e){ }, success: function(data) { if (data.success) { - success(); + $('#cardProduct') + .modal('hide'); + $('#success-modal') + .modal('show'); } else { alert(data.error) } -- libgit2 0.21.4