diff --git a/VERSION b/VERSION index d5e7c40..c659825 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1162 \ No newline at end of file +1163 \ No newline at end of file diff --git a/backend/static/index.html b/backend/static/index.html index 85c40c8..487ccb1 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -86,14 +86,14 @@ Ban Yaro - + - - - - - + + + + + @@ -617,11 +617,11 @@ - - - - - + + + + + @@ -631,7 +631,7 @@ - + diff --git a/backend/static/js/app.js b/backend/static/js/app.js index af14237..ca5ddd8 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 = '1162'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '1163'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.6.0'; // ← semantische Version, wird bei make release gesetzt window.APP_VER = APP_VER; // global verfügbar für andere Module (z.B. offline-indicator) window.APP_VERSION = APP_VERSION; diff --git a/backend/static/js/pages/friends.js b/backend/static/js/pages/friends.js index 87a177a..dffce5d 100644 --- a/backend/static/js/pages/friends.js +++ b/backend/static/js/pages/friends.js @@ -148,6 +148,21 @@ window.Page_friends = (() => { _searchTimer = setTimeout(() => _doSearch(q), 380); }); + // Delegierter Click-Handler — robust auch unter strikter CSP / für + // dynamisch nachgerenderte Buttons (Anfragen, Freundesliste). + // Ersetzt Inline-onclick, das auf manchen iOS-PWA-Sessions nicht feuerte. + _container.addEventListener('click', e => { + const btn = e.target.closest('[data-fr-action]'); + if (!btn) return; + const id = parseInt(btn.dataset.frId, 10); + switch (btn.dataset.frAction) { + case 'accept': _accept(id); break; + case 'decline': _decline(id); break; + case 'cancel': _cancel(id); break; + case 'chat': _openChat(id); break; + } + }); + // Prefill aus URL-Parameter → sofort suchen if (prefill && prefill.length >= 2) { _doSearch(prefill); @@ -359,12 +374,12 @@ window.Page_friends = (() => {
@@ -402,7 +417,7 @@ window.Page_friends = (() => {
Anfrage ausstehend
@@ -514,7 +529,7 @@ window.Page_friends = (() => { diff --git a/backend/static/landing.html b/backend/static/landing.html index bd85f7f..8584afd 100644 --- a/backend/static/landing.html +++ b/backend/static/landing.html @@ -4,7 +4,7 @@ - + Ban Yaro — Die Hunde-App für Deutschland, Österreich & Schweiz diff --git a/backend/static/sw.js b/backend/static/sw.js index dab5f8d..ed96e6e 100644 --- a/backend/static/sw.js +++ b/backend/static/sw.js @@ -4,7 +4,7 @@ ============================================================ */ // ← EINZIGE Stelle für die Version — STATIC_ASSETS und CACHE_VERSION leiten sich ab -const VER = '1162'; +const VER = '1163'; const CACHE_VERSION = `by-v${VER}`; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten