From 3996e3fb4f3c434b4b4984d9a4640ac928f0ac53 Mon Sep 17 00:00:00 2001 From: Quentin Rouiller Date: Tue, 21 Apr 2026 12:42:50 +0200 Subject: [PATCH] =?UTF-8?q?v5.0.5=20=E2=80=94=20Correctifs=20admin/UX?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 2 +- viewer.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/manifest.json b/manifest.json index 319a508..4ffcdfa 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "Planification", - "version": "5.0.4", + "version": "5.0.5", "description": "Vue claire et rapide du planning des techniciens EasyVista. Regroupe interventions et réservations par tech, affiche horaires, contact, lieu, catégorie et statut en un coup d'œil.", "permissions": ["activeTab", "scripting", "storage", "tabs", "alarms"], "host_permissions": [ diff --git a/viewer.js b/viewer.js index 0bbd072..fadcd07 100644 --- a/viewer.js +++ b/viewer.js @@ -3942,16 +3942,16 @@ function buildCard(tech, isoDate) { // bouton visible). Contient : détail période + bouton supprimer si // c'est une absence supprimable (actionId réel, pas pompier récurrent). if (ab.actionId && !ab.isPompier && !ab._recurring) { - // On attache le tooltip sur la CARD ENTIÈRE (cardEl) — comme ça + // On attache le tooltip sur la CARD ENTIÈRE (card) — comme ça // survoler n'importe où sur la zone grisée "absent" le déclenche. const ivCopy = { ...ab, type: "AL-Absence" // force pour buildTooltipHTML }; - cardEl.addEventListener("mouseenter", (e) => { - showTooltip(e, ivCopy, cardEl); + card.addEventListener("mouseenter", (e) => { + showTooltip(e, ivCopy, card); }); - cardEl.addEventListener("mouseleave", () => { + card.addEventListener("mouseleave", () => { hideTooltip(); }); }