mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixes #97 and creates a library dictionary cache to avoid FindById recursion
This commit is contained in:
parent
991cbb0830
commit
3eb34de649
6 changed files with 30 additions and 61 deletions
|
@ -13,7 +13,6 @@
|
|||
|
||||
var query = {
|
||||
Fields: "PrimaryImageAspectRatio",
|
||||
SortBy: "SortName",
|
||||
Recursive: getParameterByName('Recursive') == 'true'
|
||||
};
|
||||
|
||||
|
@ -34,7 +33,19 @@
|
|||
$('#chkRecentlyAdded', page).checked(true).checkboxradio("refresh");
|
||||
}
|
||||
|
||||
var sortBy = getParameterByName('SortBy') || 'SortName';
|
||||
query.SortBy = sortBy;
|
||||
$('.radioSortBy', page).checked(false).checkboxradio("refresh");
|
||||
$('#radio' + sortBy, page).checked(true).checkboxradio("refresh");
|
||||
|
||||
var order = getParameterByName('SortOrder') || 'Ascending';
|
||||
|
||||
query.SortOrder = order;
|
||||
$('.radioSortOrder', page).checked(false).checkboxradio("refresh");
|
||||
$('#radio' + order, page).checked(true).checkboxradio("refresh");
|
||||
|
||||
query.Filters = filters.join(',');
|
||||
//query.limit = 100;
|
||||
|
||||
if (parentId) {
|
||||
query.parentId = parentId;
|
||||
|
@ -112,8 +123,6 @@
|
|||
|
||||
query.Filters = filters;
|
||||
|
||||
query.Recursive = filters.length ? true : false;
|
||||
|
||||
ItemListPage.refreshItems(query);
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue