Explorar el Código

automatically close redeem modal after successful redeem

AVMG20 hace 4 años
padre
commit
cfc61bebda
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      resources/views/models/redeem_voucher_modal.blade.php

+ 3 - 0
resources/views/models/redeem_voucher_modal.blade.php

@@ -61,6 +61,9 @@
             success: function (response) {
                 resetForm()
                 redeemVoucherSetSuccess(response)
+                setTimeout(() => {
+                    $('#redeemVoucherModal').modal('toggle');
+                } , 1500)
             },
             error: function (jqXHR, textStatus, errorThrown) {
                 resetForm()