From 376c7f7bc8f8ed42600835b96139583ec5055a1d Mon Sep 17 00:00:00 2001 From: Gmer4Lfe Date: Sun, 24 May 2026 20:00:00 -0400 Subject: [PATCH] feat(scheduler): persist invert preference in localStorage --- .../emhttp/plugins/varaverk/pages/scheduler.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Plugin/usr/local/emhttp/plugins/varaverk/pages/scheduler.php b/Plugin/usr/local/emhttp/plugins/varaverk/pages/scheduler.php index 3fe5cdb..9164991 100644 --- a/Plugin/usr/local/emhttp/plugins/varaverk/pages/scheduler.php +++ b/Plugin/usr/local/emhttp/plugins/varaverk/pages/scheduler.php @@ -184,7 +184,7 @@ foreach ($tree as $orch) { Scroll Lock @@ -392,6 +392,16 @@ function vvRestoreScrollLock() { document.getElementById('vv-log-pre').style.overflowY = on ? 'hidden' : ''; } +function vvToggleInvert(cb) { + localStorage.setItem('vv-invert-log', cb.checked ? '1' : '0'); + vvFetchRight(); +} + +function vvRestoreInvert() { + const val = localStorage.getItem('vv-invert-log'); + if (val !== null) document.getElementById('vv-invert-log').checked = val === '1'; +} + function vvBackToSuggestions() { if (vvActiveId) { const old = document.querySelector('[data-id="' + CSS.escape(vvActiveId) + '"]'); @@ -816,6 +826,7 @@ function vvToggleSugBlock(bi) {