Commit 6d2f2cf10545dc747c284b034b5ef5a5ab77194c

Authored by Volodymyr
1 parent 80216099

success on product form

Showing 1 changed file with 4 additions and 1 deletions   Show diff stats
frontend/web/js/product.js
@@ -24,7 +24,10 @@ $('#order-product').click(function (e){ @@ -24,7 +24,10 @@ $('#order-product').click(function (e){
24 }, 24 },
25 success: function(data) { 25 success: function(data) {
26 if (data.success) { 26 if (data.success) {
27 - success(); 27 + $('#cardProduct')
  28 + .modal('hide');
  29 + $('#success-modal')
  30 + .modal('show');
28 } else { 31 } else {
29 alert(data.error) 32 alert(data.error)
30 } 33 }