Ordner-Chips standardmäßig eingeklappt – aufgeklappt nur, wenn auf dem Gerät so gewählt (sw CACHE v160)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
d702a27d16
commit
3eca4d8404
2 changed files with 3 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue