mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-07-29 15:29:14 +02:00
this fixes that
This commit is contained in:
+6
-2
@@ -255,8 +255,6 @@ document.getElementById("jingle-btn").addEventListener("contextmenu", (e) => {
|
||||
e.preventDefault();
|
||||
ws.send(JSON.stringify({action:"jingle", top: true}));
|
||||
});
|
||||
document.getElementById("clear-btn").addEventListener("click", () => ws.send(JSON.stringify({action:"clear_toplay"})));
|
||||
|
||||
document.getElementById("skipidx-btn").addEventListener("click", () => {
|
||||
if (selectedPlaylistIndex == null) return;
|
||||
const action = skipped_idx.includes(selectedPlaylistIndex)
|
||||
@@ -265,6 +263,12 @@ document.getElementById("skipidx-btn").addEventListener("click", () => {
|
||||
ws.send(JSON.stringify(action));
|
||||
});
|
||||
|
||||
document.getElementById("queue-title").addEventListener("click", () => toggleSection("section-queue"));
|
||||
document.getElementById("clear-btn").addEventListener("click", (e) => {
|
||||
e.stopPropagation();
|
||||
ws.send(JSON.stringify({action:"clear_toplay"}));
|
||||
});
|
||||
|
||||
function addSelectedFileToQueue(top) {
|
||||
let fullPath = null;
|
||||
let success = false;
|
||||
|
||||
Reference in New Issue
Block a user