From 158f1b509fd9a41b74dc4c30eb15e975e2ca669e Mon Sep 17 00:00:00 2001 From: Jules Date: Mon, 22 Jun 2026 19:13:37 +0200 Subject: [PATCH] Email : fermer formulaire avant envoi + raccourcis domaines FR - Ferme le formulaire email immediatement au clic Envoyer (le toast etait cache derriere l'overlay fullscreen) - Ajout domaines : @outlook, @yahoo, @icloud, @orange, @free, @sfr, @laposte Co-Authored-By: Claude Opus 4.6 --- frontend/index.html | 11 +++++++++-- frontend/js/share.js | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index a43404d..1f85bea 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -211,8 +211,15 @@ - - + + + +
+ + + + +
diff --git a/frontend/js/share.js b/frontend/js/share.js index 74976ac..5ce04bb 100644 --- a/frontend/js/share.js +++ b/frontend/js/share.js @@ -139,11 +139,11 @@ async function envoyerEmail() { const email = document.getElementById('input-email').value.trim(); if (!email || !photoFinale) return; + fermerEmail(); afficherStatut('Envoi en cours...', 'succes'); const resultat = await apiPost('/api/email', { email, photo: photoFinale }); if (resultat.succes) { afficherStatut('Email envoye !', 'succes'); - fermerEmail(); } else { afficherStatut('Erreur d\'envoi email', 'erreur'); }