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

restore paging buttons

This commit is contained in:
Luke Pulverenti 2015-01-28 14:30:45 -05:00
parent e29ef2baf1
commit 510b3e6511
13 changed files with 101 additions and 55 deletions

View file

@ -37,14 +37,15 @@
$(document).scrollTop(0);
var html = '';
$('.listTopPaging', page).html(LibraryBrowser.getQueryPagingHtml({
var pagingHtml = LibraryBrowser.getQueryPagingHtml({
startIndex: query.StartIndex,
limit: query.Limit,
totalRecordCount: result.TotalRecordCount,
viewButton: true,
showLimit: false
})).trigger('create');
});
$('.listTopPaging', page).html(pagingHtml).trigger('create');
updateFilterControls(page);
@ -79,7 +80,9 @@
});
}
$('#items', page).html(html).lazyChildren();
var elem = $('#items', page).html(html).lazyChildren();
$(pagingHtml).appendTo(elem).trigger('create');
$('.btnNextPage', page).on('click', function () {
query.StartIndex += query.Limit;