From 9e9b87af35346e74c9e47dea53110636822cb1fb Mon Sep 17 00:00:00 2001 From: rene Date: Wed, 29 Apr 2026 17:09:45 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20Jahresbericht-Modal=20Schlie=C3=9Fen-But?= =?UTF-8?q?ton=20+=20expliziter=20close-Handler=20=E2=80=94=20SW=20by-v507?= =?UTF-8?q?,=20APP=5FVER=20484?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/static/js/app.js | 2 +- backend/static/js/pages/zuchthunde.js | 7 ++++++- backend/static/sw.js | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 14a3929..47bebe5 100644 --- a/backend/static/js/app.js +++ b/backend/static/js/app.js @@ -3,7 +3,7 @@ Router, State-Management, Navigation, Initialisierung. ============================================================ */ -const APP_VER = '483'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '484'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const App = (() => { diff --git a/backend/static/js/pages/zuchthunde.js b/backend/static/js/pages/zuchthunde.js index e5d6175..1b2131b 100644 --- a/backend/static/js/pages/zuchthunde.js +++ b/backend/static/js/pages/zuchthunde.js @@ -1320,6 +1320,9 @@ window.Page_zuchthunde = (() => {

`, footer: ` + @@ -1328,6 +1331,7 @@ window.Page_zuchthunde = (() => { `, }); + document.getElementById('ki-bericht-abbrechen')?.addEventListener('click', () => UI.modal.close()); document.getElementById('ki-bericht-letzten-anzeigen')?.addEventListener('click', async () => { try { const r = await API.zuchtKi.jahresberichtGet(letzter.id); @@ -1381,9 +1385,10 @@ window.Page_zuchthunde = (() => { - `, + `, }); + document.getElementById('ki-bericht-close')?.addEventListener('click', () => UI.modal.close()); document.getElementById('ki-bericht-copy')?.addEventListener('click', async () => { try { await navigator.clipboard.writeText(text); UI.toast.success('Bericht kopiert.'); } catch { UI.toast.error('Kopieren nicht möglich.'); } diff --git a/backend/static/sw.js b/backend/static/sw.js index 5458efa..c8ded63 100644 --- a/backend/static/sw.js +++ b/backend/static/sw.js @@ -3,7 +3,7 @@ Offline-Cache + Push Notifications + Tile-Cache ============================================================ */ -const CACHE_VERSION = 'by-v506'; +const CACHE_VERSION = 'by-v507'; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten