Varaverk: always open Scheduler Information on page load; restore button for last log
This commit is contained in:
@@ -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();
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user