You've already forked RadioPlayer
mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-02-26 21:53:54 +01:00
deselect track on put
This commit is contained in:
@@ -371,6 +371,8 @@
|
|||||||
// Priority 1: Check for a selected file in the subdirectory list
|
// Priority 1: Check for a selected file in the subdirectory list
|
||||||
if (selectedSubFile && selectedDir) {
|
if (selectedSubFile && selectedDir) {
|
||||||
fullPath = subbasePath.replace(/\/$/, '') + '/' + selectedSubFile;
|
fullPath = subbasePath.replace(/\/$/, '') + '/' + selectedSubFile;
|
||||||
|
Array.from(document.getElementById("subdir-box").children).forEach(c => c.classList.remove("selected"));
|
||||||
|
selectedSubFile = null;
|
||||||
} else {
|
} else {
|
||||||
// Priority 2: Check for a selected file in the main directory list
|
// Priority 2: Check for a selected file in the main directory list
|
||||||
const dirEls = document.getElementById("dirs-box").children;
|
const dirEls = document.getElementById("dirs-box").children;
|
||||||
@@ -381,6 +383,8 @@
|
|||||||
// A simple check to see if the selected item is a file
|
// A simple check to see if the selected item is a file
|
||||||
if (name.includes('.')) {
|
if (name.includes('.')) {
|
||||||
fullPath = basePath.replace(/\/$/, '') + '/' + name;
|
fullPath = basePath.replace(/\/$/, '') + '/' + name;
|
||||||
|
Array.from(dirEls).forEach(c => c.classList.remove("selected"));
|
||||||
|
selectedDir = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user