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

@ -23,9 +23,7 @@
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');
for (var i = 0, length = result.Items.length; i < length; i++) {
var item = result.Items[i];
@ -41,11 +39,9 @@
}
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;