playlist.html: The livegrid works you can scroll up and down,

but songnames etc are truncated to 10 chars to prevent
the rows from expanding their heights.
I have to do something about the layout to get more room.
This commit is contained in:
Anders Betnér 2006-04-08 23:57:40 +00:00
parent e6b57ef704
commit 0987d427e6
1 changed files with 5 additions and 1 deletions

View File

@ -1984,7 +1984,7 @@ Rico.LiveGridBuffer.prototype = {
seconds = (seconds < 10) ? '0'+seconds : seconds;
row.push(Math.floor(time/60)+ ':' + seconds);
} else {
row.push(el.getElementsByTagName(name)[0].firstChild.nodeValue);
row.push(el.getElementsByTagName(name)[0].firstChild.nodeValue.truncate(10));
}
});
newRows.push(row);
@ -2421,6 +2421,10 @@ Rico.LiveGrid.prototype = {
ajaxUpdate: function(ajaxResponse) {
try {
clearTimeout( this.timeoutHandler );
var totalRows = ajaxResponse.responseXML.getElementsByTagName('dmap.specifiedtotalcount')[0].firstChild.nodeValue;
if (this.metaData.getTotalRows() != totalRows) {
this.setTotalRows(totalRows);
}
this.buffer.update(ajaxResponse,this.processingRequest.bufferOffset);
this.viewPort.bufferChanged();
}