1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

always show paging

This commit is contained in:
Luke Pulverenti 2013-04-19 12:28:06 -04:00
parent 414feaf3a2
commit 8f85dce021
19 changed files with 66 additions and 121 deletions

View file

@ -21,20 +21,16 @@
var html = '';
var showPaging = result.TotalRecordCount > query.Limit;
$('.listTopPaging', page).html(showPaging ? LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true) : '').trigger('create');
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');
html += LibraryBrowser.getPosterDetailViewHtml({
items: result.Items,
useAverageAspectRatio: true
});
if (showPaging) {
html += LibraryBrowser.getPagingHtml(query, result.TotalRecordCount);
}
html += LibraryBrowser.getPagingHtml(query, result.TotalRecordCount);
var elem = $('#items', page).html(html).trigger('create');
$('#items', page).html(html).trigger('create');
$('.selectPage', page).on('change', function () {
query.StartIndex = (parseInt(this.value) - 1) * query.Limit;