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

expand device identification

This commit is contained in:
Luke Pulverenti 2014-03-17 10:48:16 -04:00
parent 1e76f3cfe4
commit 7dcf71e256
30 changed files with 344 additions and 394 deletions

View file

@ -9,7 +9,8 @@
Recursive: true,
Fields: "DateCreated",
PersonTypes: "",
StartIndex: 0
StartIndex: 0,
Limit: 100
};
function reloadItems(page) {
@ -23,7 +24,7 @@
var html = '';
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, false, [], false)).trigger('create');
updateFilterControls(page);
@ -37,7 +38,7 @@
coverImage: true
});
html += LibraryBrowser.getPagingHtml(query, result.TotalRecordCount);
html += LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, false, [], false);
$('#items', page).html(html).trigger('create');
@ -51,12 +52,6 @@
reloadItems(page);
});
$('.selectPageSize', page).on('change', function () {
query.Limit = parseInt(this.value);
query.StartIndex = 0;
reloadItems(page);
});
LibraryBrowser.saveQueryValues('tvpeople', query);
Dashboard.hideLoadingMsg();
@ -140,14 +135,6 @@
}).on('pagebeforeshow', "#tvPeoplePage", 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('tvpeople', query);
reloadItems(this);