From 3eca4d8404025e0ea84dbb15f4e6f6bd197735a2 Mon Sep 17 00:00:00 2001 From: mrwnslz Date: Mon, 26 Oct 2026 21:18:32 +0100 Subject: [PATCH] =?UTF-8?q?Ordner-Chips=20standardm=C3=A4=C3=9Fig=20eingek?= =?UTF-8?q?lappt=20=E2=80=93=20aufgeklappt=20nur,=20wenn=20auf=20dem=20Ger?= =?UTF-8?q?=C3=A4t=20so=20gew=C3=A4hlt=20(sw=20CACHE=20v160)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- static/js/folders.js | 4 ++-- static/js/sw.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/folders.js b/static/js/folders.js index 833bec2..353c73d 100644 --- a/static/js/folders.js +++ b/static/js/folders.js @@ -23,14 +23,14 @@ // picked with onPick({lead: id}). active: null = all, '' = without a folder, else a name. // The folders fold away (a "Ordner" chip), per area (the list's element id), remembered on - // this device; folded, only the folder chosen stays in sight. + // this device; folded, only the folder chosen stays in sight. Folded until opened. function areaKey(el) { const owner = el.id ? el : el.parentElement && el.parentElement.closest('[id]'); return 'diora_folders_folded_' + (owner ? owner.id : 'x'); } function folded(el) { - try { return localStorage.getItem(areaKey(el)) === '1'; } catch (e) { return false; } + try { return localStorage.getItem(areaKey(el)) !== '0'; } catch (e) { return true; } } function chips(el, o) { diff --git a/static/js/sw.js b/static/js/sw.js index 08eeb26..6320369 100644 --- a/static/js/sw.js +++ b/static/js/sw.js @@ -2,7 +2,7 @@ * diora service worker — caches the app shell for offline use. */ -const CACHE = 'diora-v159'; +const CACHE = 'diora-v160'; const SHELL = [ '/static/css/app.css', '/static/js/app/01-core.js',