changing artist clears trackList
This commit is contained in:
parent
a0eec2baa4
commit
2ddf78f46f
|
@ -64,6 +64,10 @@ function artist_albums_recv(data) {
|
|||
while (albums_list.firstChild) {
|
||||
albums_list.removeChild(albums_list.lastChild);
|
||||
}
|
||||
let track_list = document.querySelector('#trackList');
|
||||
while (track_list.firstChild) {
|
||||
track_list.removeChild(track_list.firstChild);
|
||||
}
|
||||
for (let album of data) {
|
||||
let option = document.createElement('option');
|
||||
option.value = album['album'];
|
||||
|
|
Loading…
Reference in New Issue
Block a user