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(); });