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