From 8a3c5b2ee8b73dd9ed251d3037a134b816372ad4 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sat, 27 Dec 2025 22:06:19 +0100 Subject: [PATCH] only one selected --- modules/web.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/web.html b/modules/web.html index 53f0529..c46df13 100644 --- a/modules/web.html +++ b/modules/web.html @@ -340,6 +340,7 @@ const ul = document.getElementById("playlist-ul"); Array.from(ul.children).forEach(c => c.classList.remove("selected")); Array.from(document.getElementById("dirs-box").children).forEach(c => c.classList.remove("selected")); + Array.from(document.getElementById("subdir-box").children).forEach(c => c.classList.remove("selected")); el.classList.add("selected"); selectedPlaylistIndex = i; updateControls() @@ -373,6 +374,7 @@ } Array.from(dirsBox.children).forEach(c=>c.classList.remove("selected")); Array.from(document.getElementById("playlist-ul").children).forEach(c => c.classList.remove("selected")); + Array.from(document.getElementById("subdir-box").children).forEach(c => c.classList.remove("selected")); node.classList.add("selected"); selectedDir = null; selectedSubFile = null; @@ -436,6 +438,7 @@ if (selectedSubFile && selectedDir) { fullPath = subbasePath.replace(/\/$/, '') + '/' + selectedSubFile; Array.from(document.getElementById("subdir-box").children).forEach(c => c.classList.remove("selected")); + Array.from(document.getElementById("playlist-ul").children).forEach(c => c.classList.remove("selected")); selectedSubFile = null; } // Priority 2: selected main directory file