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

left align web client content

This commit is contained in:
Luke Pulverenti 2014-05-04 10:19:46 -04:00
parent 3e1c78d345
commit b88819dd78
11 changed files with 41 additions and 80 deletions

View file

@ -19,8 +19,6 @@
var html = '';
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');
updateFilterControls(page);
html = LibraryBrowser.getPosterViewHtml({
@ -34,22 +32,6 @@
$('#items', page).html(html).trigger('create').createPosterItemMenus();
$('.btnNextPage', page).on('click', function () {
query.StartIndex += query.Limit;
reloadItems(page);
});
$('.btnPreviousPage', page).on('click', function () {
query.StartIndex -= query.Limit;
reloadItems(page);
});
$('.selectPageSize', page).on('change', function () {
query.Limit = parseInt(this.value);
query.StartIndex = 0;
reloadItems(page);
});
LibraryBrowser.saveQueryValues('channels', query);
Dashboard.hideLoadingMsg();
@ -62,14 +44,6 @@
$(document).on('pagebeforeshow', "#channelsPage", function () {
var limit = LibraryBrowser.getDefaultPageSize();
// If the default page size has changed, the start index will have to be reset
if (limit != query.Limit) {
query.Limit = limit;
query.StartIndex = 0;
}
LibraryBrowser.loadSavedQueryValues('channels', query);
reloadItems(this);