mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add GuestStar distinction
This commit is contained in:
parent
b5d5747498
commit
c4b06b0aac
5 changed files with 62 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
|||
IncludeItemTypes: "Series",
|
||||
Recursive: true,
|
||||
Fields: "PrimaryImageAspectRatio,ItemCounts,DateCreated,UserData",
|
||||
PersonTypes: "",
|
||||
Limit: LibraryBrowser.getDetaultPageSize(),
|
||||
StartIndex: 0
|
||||
};
|
||||
|
@ -80,6 +81,22 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
$('.chkPersonTypeFilter', this).on('change', function () {
|
||||
|
||||
var filterName = this.getAttribute('data-filter');
|
||||
var filters = query.PersonTypes || "";
|
||||
|
||||
filters = (',' + filters).replace(',' + filterName, '').substring(1);
|
||||
|
||||
if (this.checked) {
|
||||
filters = filters ? (filters + ',' + filterName) : filterName;
|
||||
}
|
||||
|
||||
query.PersonTypes = filters;
|
||||
|
||||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pagebeforeshow', "#tvPeoplePage", function () {
|
||||
|
||||
reloadItems(this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue