fixed regex for disc number
This commit is contained in:
parent
46ced5572d
commit
ec89df7a88
|
@ -45,7 +45,7 @@ function select_album(select) {
|
||||||
nav_items = JSON.parse(httpRequest.responseText);
|
nav_items = JSON.parse(httpRequest.responseText);
|
||||||
let html_str = '';
|
let html_str = '';
|
||||||
for (let i = 0; i < nav_items.length; i++) {
|
for (let i = 0; i < nav_items.length; i++) {
|
||||||
html_str += '<option value="' + nav_items[i].replace(/\d* - /, '') + '">' + nav_items[i] + '</option>';
|
html_str += '<option value="' + nav_items[i].replace(/^.*? - /, '') + '">' + nav_items[i] + '</option>';
|
||||||
}
|
}
|
||||||
document.getElementById('trackList').innerHTML = html_str;
|
document.getElementById('trackList').innerHTML = html_str;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user