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:
Anders Betnér
2006-04-18 20:23:19 +00:00
parent 268019eb41
commit b60b439102
3 changed files with 48 additions and 26 deletions

View File

@@ -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]
}