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

fixes around saving page size

This commit is contained in:
Luke Pulverenti 2013-05-15 15:40:47 -04:00
parent d12a273620
commit 8ee91b74ab
19 changed files with 370 additions and 268 deletions

View file

@ -1,7 +1,7 @@
(function ($, document) {
var view = "Poster";
// The base query options
var query = {
@ -75,15 +75,15 @@
}
$('#itemName', page).html(name);
Dashboard.setPageTitle(name);
if (ApiClient.isWebSocketOpen()) {
ApiClient.sendWebSocketMessage("Context", [item.Type, item.Id].join('|'));
}
});
Dashboard.getCurrentUser().done(function (user) {
if (user.Configuration.IsAdministrator) {
@ -99,8 +99,6 @@
var page = this;
query.Limit = LibraryBrowser.getDefaultPageSize();
$('.radioSortBy', this).on('click', function () {
query.StartIndex = 0;
query.SortBy = this.getAttribute('data-sortby');
@ -144,12 +142,13 @@
}).on('pageshow', "#itemListPage", function () {
query.Limit = LibraryBrowser.getDefaultPageSize();
query.ParentId = getParameterByName('parentId');
query.Filters = "";
query.SortBy = "SortName";
query.SortOrder = "Ascending";
query.StartIndex = 0;
reloadItems(this);
// Reset form values using the last used query