From f6586c88ee13b0cff8cc9fd9f61e150fa5b6c811 Mon Sep 17 00:00:00 2001 From: rene Date: Sun, 26 Apr 2026 09:04:10 +0200 Subject: [PATCH] =?UTF-8?q?Giftk=C3=B6der:=20Tiergift-Nummern=20raus,=20Er?= =?UTF-8?q?ste-Hilfe-Button=20direkt=20zu=20Vergiftung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit poison.js: nur noch Polizei 110 + Button → Erste Hilfe (Tab lebensgefahr) erste-hilfe.js: init() akzeptiert params.tab zum direkten Tab-Sprung SW by-v414, APP_VER 393 --- backend/static/js/app.js | 2 +- backend/static/js/pages/erste-hilfe.js | 3 ++- backend/static/js/pages/poison.js | 16 ++++++---------- backend/static/sw.js | 2 +- 4 files changed, 10 insertions(+), 13 deletions(-) diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 589e18e..57415b5 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 = '392'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '393'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const App = (() => { diff --git a/backend/static/js/pages/erste-hilfe.js b/backend/static/js/pages/erste-hilfe.js index 5e9d262..6c76d86 100644 --- a/backend/static/js/pages/erste-hilfe.js +++ b/backend/static/js/pages/erste-hilfe.js @@ -2,10 +2,11 @@ window.Page_erste_hilfe = (() => { let _container = null; let _appState = null; - async function init(container, appState) { + async function init(container, appState, params = {}) { _container = container; _appState = appState; _render(); + if (params.tab) _activateTab(params.tab); } function refresh() {} diff --git a/backend/static/js/pages/poison.js b/backend/static/js/pages/poison.js index af52c68..71d4a1a 100644 --- a/backend/static/js/pages/poison.js +++ b/backend/static/js/pages/poison.js @@ -68,18 +68,12 @@ window.Page_poison = (() => {
- + ${UI.icon('phone')} 110 Polizei - - ${UI.icon('first-aid')} 089 19240 Tiergift München - - - ${UI.icon('first-aid')} 030 19240 Tiergift Berlin - - - ${UI.icon('first-aid')} 01 4064343 Tiergift Wien - +

{ ?.addEventListener('click', _locateUser); document.getElementById('poison-btn-report') ?.addEventListener('click', _showReportForm); + document.getElementById('poison-btn-erstehilfe') + ?.addEventListener('click', () => App.navigate('erste-hilfe', true, { tab: 'lebensgefahr' })); await UI.loadLeaflet(); _initMap(); diff --git a/backend/static/sw.js b/backend/static/sw.js index 64a26c8..7015a07 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-v413'; +const CACHE_VERSION = 'by-v414'; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten