mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-31 01:33:44 -04:00
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:
parent
e6b57ef704
commit
0987d427e6
@ -1984,7 +1984,7 @@ Rico.LiveGridBuffer.prototype = {
|
|||||||
seconds = (seconds < 10) ? '0'+seconds : seconds;
|
seconds = (seconds < 10) ? '0'+seconds : seconds;
|
||||||
row.push(Math.floor(time/60)+ ':' + seconds);
|
row.push(Math.floor(time/60)+ ':' + seconds);
|
||||||
} else {
|
} else {
|
||||||
row.push(el.getElementsByTagName(name)[0].firstChild.nodeValue);
|
row.push(el.getElementsByTagName(name)[0].firstChild.nodeValue.truncate(10));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
newRows.push(row);
|
newRows.push(row);
|
||||||
@ -2421,6 +2421,10 @@ Rico.LiveGrid.prototype = {
|
|||||||
ajaxUpdate: function(ajaxResponse) {
|
ajaxUpdate: function(ajaxResponse) {
|
||||||
try {
|
try {
|
||||||
clearTimeout( this.timeoutHandler );
|
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.buffer.update(ajaxResponse,this.processingRequest.bufferOffset);
|
||||||
this.viewPort.bufferChanged();
|
this.viewPort.bufferChanged();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user