diff --git a/Js/fonctions.js b/Js/fonctions.js index 7acc1e34..0bd6988d 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -20788,21 +20788,27 @@ function enregistrer_modif_gc_assureur() donnees += '&adresseGeographique='+adresseGeographique+'&numerodeCompteComptableTP='+numerodeCompteComptableTP; donnees += '&numeroCompteContribuable='+numeroCompteContribuable+'&codeModePaiementDemande='+codeModePaiementDemande; donnees += '&encaissementExige='+encaissementExige; - //alert(donnees); - //return; - - $.ajax({ - url: $("#racineWeb").val()+"Ajaxgcassureur/enregistrermodif/", - type : 'post', - data: donnees, - error: function(errorData) { - }, - success: function(data) { - - }, - complete: function() { - retour_gc_assureur(); - } + + v_msg="Confirmez-vous cette action ?"; + v_msgEng="Do you confirm this action?"; + + confirm_ebene(v_msg, v_msgEng) + .then((isConfirmed) => { + if (isConfirmed) { + $.ajax({ + url: $("#racineWeb").val()+"Ajaxgcassureur/enregistrermodif/", + type : 'post', + data: donnees, + error: function(errorData) { + }, + success: function(data) { + + }, + complete: function() { + retour_gc_assureur(); + } + }); + } }); }