Removed genre from songlist.

This commit is contained in:
Anders Betnér 2006-04-14 05:34:47 +00:00
parent ad0455d09a
commit 610f507ada
2 changed files with 11 additions and 6 deletions

View File

@ -1976,7 +1976,7 @@ Rico.LiveGridBuffer.prototype = {
$A(ajaxResponse.responseXML.getElementsByTagName('dmap.listingitem')).each(function (el) {
var row = [];
//,dmap.itemid,,dmap.itemname']
['dmap.itemname','daap.songtime','daap.songartist','daap.songalbum','daap.songgenre'].each(function (name) {
['dmap.itemname','daap.songtime','daap.songartist','daap.songalbum'].each(function (name) {
if ('daap.songtime' == name) {
var time = parseInt(Element.textContent(el.getElementsByTagName(name)[0]));
time = Math.round(time / 1000);
@ -1984,7 +1984,7 @@ Rico.LiveGridBuffer.prototype = {
seconds = (seconds < 10) ? '0'+seconds : seconds;
row.push(Math.floor(time/60)+ ':' + seconds);
} else {
row.push(Element.textContent(el.getElementsByTagName(name)[0]).truncate(10));
row.push(Element.textContent(el.getElementsByTagName(name)[0]));
}
});
newRows.push(row);

View File

@ -36,6 +36,13 @@
width: 25ex;
display: none;
}
#songs_data {
table-layout: fixed;
}
#songs_data td {
overflow: hidden;
white-space: nowrap;
}
</style>
<div id="search_div">
<label for="search">search</label>
@ -87,19 +94,17 @@ Album<br />
<div id="songs_div" style="float: left; width:549px;">
<table id="songs" style="width:530px;" border="0" cellspacing="0" cellpadding="0">
<tr>
<th style="width: 140px;">Song</th>
<th style="width: 240px;">Song</th>
<th style="width: 50px;">Time</th>
<th style="width: 120px;">Artist</th>
<th style="width: 120px;">Album</th>
<th style="width: 100px;">Genre</th>
</tr>
</table>
<table id="songs_data" style="width:530px;" border="0" cellspacing="0" cellpadding="0">
<col style="width: 140px;" />
<col style="width: 240px;" />
<col style="width: 50px;" />
<col style="width: 120px;" />
<col style="width: 120px;" />
<col style="width: 100px;" />
<tr><td>&#x00a0;</td><td></td><td></td><td></td><td></td></tr>
<tr><td>&#x00a0;</td><td></td><td></td><td></td><td></td></tr>
<tr><td>&#x00a0;</td><td></td><td></td><td></td><td></td></tr>