diff options
| author | stonedDiscord <Tukz@gmx.de> | 2022-09-04 22:30:31 +0200 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2022-09-04 22:30:31 +0200 |
| commit | 1e3fde25b9f6d8adbdf087a51a34dc35cc1907d8 (patch) | |
| tree | 6b0c33270bc7ec96ab7dbe3381870babeb60a179 /webAO/dom/musicListClick.ts | |
| parent | 975fb353dd7f5bec7bcb836f4ceb86fae9b70340 (diff) | |
undo dom stuff
Diffstat (limited to 'webAO/dom/musicListClick.ts')
| -rw-r--r-- | webAO/dom/musicListClick.ts | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/webAO/dom/musicListClick.ts b/webAO/dom/musicListClick.ts deleted file mode 100644 index 1eb6619..0000000 --- a/webAO/dom/musicListClick.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { client } from "../client"; -/** - * Triggered when an item on the music list is clicked. - * @param {MouseEvent} event - */ -export function musiclist_click(_event: Event) { - const playtrack = (<HTMLInputElement>( - document.getElementById("client_musiclist") - )).value; - client.sendMusicChange(playtrack); - - // This is here so you can't actually select multiple tracks, - // even though the select tag has the multiple option to render differently - const musiclist_elements = (<HTMLSelectElement>( - document.getElementById("client_musiclist") - )).selectedOptions; - for (let i = 0; i < musiclist_elements.length; i++) { - musiclist_elements[i].selected = false; - } -} -window.musiclist_click = musiclist_click;
\ No newline at end of file |
