mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-07-29 15:29:14 +02:00
fucking javascript (more like jewscript)
This commit is contained in:
+2
-2
@@ -242,12 +242,12 @@ function renderQueue() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
li.addEventListener("click", () => {
|
li.addEventListener("click", () => {
|
||||||
wsSend({ action: "remove_toplay", indexes: [li.dataset.idx] });
|
wsSend({ action: "remove_toplay", indexes: [Number(li.dataset.idx)] });
|
||||||
renderAll();
|
renderAll();
|
||||||
});
|
});
|
||||||
li.addEventListener("contextmenu", e => {
|
li.addEventListener("contextmenu", e => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
wsSend({ action: "toggle_official_toplay", indexes: [li.dataset.idx] });
|
wsSend({ action: "toggle_official_toplay", indexes: [Number(li.dataset.idx)] });
|
||||||
renderAll();
|
renderAll();
|
||||||
})
|
})
|
||||||
ul.appendChild(li);
|
ul.appendChild(li);
|
||||||
|
|||||||
Reference in New Issue
Block a user