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 24 },
25 25 success: function(data) {
26 26 if (data.success) {
27   - success();
  27 + $('#cardProduct')
  28 + .modal('hide');
  29 + $('#success-modal')
  30 + .modal('show');
28 31 } else {
29 32 alert(data.error)
30 33 }
... ...