mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-07 12:53:00 -05:00
playlist.html:
* added a somewhat flaky spinner, will make it more smooth later * started work on selectable songs in songlist * removed unused code in playlist.js
This commit is contained in:
@@ -2162,14 +2162,21 @@ Rico.GridViewPort.prototype = {
|
||||
},
|
||||
|
||||
populateRow: function(htmlRow, row) {
|
||||
var songId = '';
|
||||
if (typeof(row[0]) == 'object') {
|
||||
htmlRow.cells[0].innerHTML = row[0].name;
|
||||
htmlRow.setAttribute('songid',row[0].id);
|
||||
songId = row[0].id;
|
||||
} else {
|
||||
// empty row
|
||||
htmlRow.cells[0].innerHTML = '';
|
||||
htmlRow.removeAttribute('songid');
|
||||
}
|
||||
if (SelectedRows.isSelected(songId)) {
|
||||
htmlRow.style.backgroundColor = '#8CACBB';
|
||||
} else {
|
||||
htmlRow.style.backgroundColor = '';
|
||||
}
|
||||
for (var j=1; j < row.length; j++) {
|
||||
htmlRow.cells[j].innerHTML = row[j]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user