From d6cfcaef469c4d65ba2e83bf7f0a44b5f02c84b1 Mon Sep 17 00:00:00 2001 From: Gmer4Lfe Date: Sun, 24 May 2026 22:51:35 -0400 Subject: [PATCH] Varaverk: always open Scheduler Information on page load; restore button for last log --- .../emhttp/plugins/varaverk/pages/scheduler.php | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Plugin/usr/local/emhttp/plugins/varaverk/pages/scheduler.php b/Plugin/usr/local/emhttp/plugins/varaverk/pages/scheduler.php index dd79de3..1272b2d 100644 --- a/Plugin/usr/local/emhttp/plugins/varaverk/pages/scheduler.php +++ b/Plugin/usr/local/emhttp/plugins/varaverk/pages/scheduler.php @@ -1051,16 +1051,12 @@ document.querySelectorAll('.vv-sched-card').forEach(card => { requestAnimationFrame(function() { vvRestoreInvert(); const last = localStorage.getItem('vv-last-job'); - if (last && document.querySelector('[data-id="' + CSS.escape(last) + '"]')) { - vvOpenRight(last); - } else { - if (last) { - const lname = last.replace(/\.sh$/, '').split('/').pop(); - document.getElementById('vv-restore-label').textContent = lname; - document.getElementById('vv-restore-btn').style.display = ''; - } - vvFitRight(); + if (last) { + const lname = last.replace(/\.sh$/, '').split('/').pop(); + document.getElementById('vv-restore-label').textContent = lname; + document.getElementById('vv-restore-btn').style.display = ''; } + vvFitRight(); vvStartStatusPoll(); });