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'];
-
+