diff --git a/application/views/config_wallet_ilink_hyp/etat_soldes.php b/application/views/config_wallet_ilink_hyp/etat_soldes.php index a8a490fc..ac25e613 100755 --- a/application/views/config_wallet_ilink_hyp/etat_soldes.php +++ b/application/views/config_wallet_ilink_hyp/etat_soldes.php @@ -391,6 +391,8 @@ const network = $(this).data('network'); const country = $(this).data('country'); const email = $(this).data('email'); + let button = $(this) + button.prop("disabled",true); $.ajax({ url: '', type: 'POST', @@ -420,7 +422,9 @@ error: function (resultat, statut, error) { console.log(resultat + " " + error); toastr.error("lang->line('error_message')?>" , "lang->line('request_error')?>"); - + }, + complete: function (){ + button.prop("disabled",false); } }); }); @@ -430,11 +434,13 @@ const salt = $(this).data('salt'); const encrypted_password = $(this).data('encrypted_password'); + let button = $(this); if ($('#payCommissionForm')[0].checkValidity()) { const montant = anElement.getNumber(); //parseFloat($('#montant').val()); const password = $('#password').val(); + button.prop("disabled",true); $.ajax({ url: '', type: 'POST', @@ -467,6 +473,9 @@ error: function (resultat, statut, error) { console.log(resultat + " " + error); toastr.error("lang->line('error_message')?>" , "lang->line('request_error')?>"); + }, + complete : function () { + button.prop("disabled",false); } }); diff --git a/application/views/demande_credit_annulation.php b/application/views/demande_credit_annulation.php index b9bfe1c4..e78bea51 100755 --- a/application/views/demande_credit_annulation.php +++ b/application/views/demande_credit_annulation.php @@ -301,6 +301,8 @@