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) {