From 26f3778786d4406d6b1242dcea25bdbb1c6c5c05 Mon Sep 17 00:00:00 2001 From: Gmer4Lfe Date: Sat, 30 May 2026 14:06:28 -0400 Subject: [PATCH] Remove redundant Scripts dir field from Scheduler tab MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit VaraverkSettings.page (Settings → Other Settings) now owns SCRIPTS_DIR. The inline Advanced-mode field and vvSaveSettings() in the Scheduler tab were a second path to the same write — removed. --- Plugin/unraid/pages/scheduler.php | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/Plugin/unraid/pages/scheduler.php b/Plugin/unraid/pages/scheduler.php index 3377179..f9d3aa1 100644 --- a/Plugin/unraid/pages/scheduler.php +++ b/Plugin/unraid/pages/scheduler.php @@ -416,18 +416,6 @@ $runningScripts = array_unique($runningScripts); style="display:none;margin-left:auto;">↻ Git Pull - - -
@@ -966,16 +954,6 @@ function vvPost(url, data) { }).then(r => r.json()); } -function vvSaveSettings() { - const dir = document.getElementById('vv-scripts-dir').value.trim(); - const status = document.getElementById('vv-settings-status'); - if (!dir) { status.textContent = '✗ Path required'; return; } - status.textContent = 'Saving…'; - vvPost('/plugins/varaverk/api/settings.php', {scripts_dir: dir}) - .then(d => { status.textContent = d.ok ? '✓ Saved — reload to apply' : '✗ ' + (d.error ?? 'Error'); }) - .catch(() => { status.textContent = '✗ Request failed'; }); -} - function vvFitRight() { const right = document.getElementById('vv-sched-right'); if (!right.classList.contains('vv-panel-visible')) return;