From 019ea8cd614f7fe9e0a8ae40f46b24e3c5e48fac Mon Sep 17 00:00:00 2001 From: KONE SOREL Date: Tue, 17 Feb 2026 13:58:42 +0000 Subject: [PATCH] derte --- Js/fonctions.js | 19 ++++++++++++++----- Vue/gabarit.php | 2 +- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/Js/fonctions.js b/Js/fonctions.js index 63e8477..3a677b7 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -4583,12 +4583,21 @@ function ajax_contexter_police(){ function ouvrir_vue(vue) { - const modalEl = document.getElementById('pop_police'); - const modal = bootstrap.Modal.getInstance(modalEl); + idPolice = $("#idPolice").val(); - if (modal) { - modal.hide(); // fermeture propre - } + if (idPolice<=" ") + { + v_msg="Veuillez sélectionner une police!"; + v_msgEng="Please select a policy!"; + + alert_ebene(v_msg, v_msgEng).then(() => { + // Ce code ne s’exécute qu’après clic sur OK + $("#idPolice").focus(); + + return; + }); + return; + } window.location.assign($("#racineWeb").val() + vue + "/"); } diff --git a/Vue/gabarit.php b/Vue/gabarit.php index 8337dcd..28aa55b 100755 --- a/Vue/gabarit.php +++ b/Vue/gabarit.php @@ -687,7 +687,7 @@ $photoAssureCrypte = $_SESSION['photoAssureCrypte']; - +