mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update genre queries
This commit is contained in:
parent
b7c966a72c
commit
70994b54a6
4 changed files with 15 additions and 4 deletions
|
@ -7,6 +7,10 @@
|
|||
|
||||
function addCurrentItemToQuery(query, item) {
|
||||
|
||||
if (params.parentId) {
|
||||
query.ParentId = params.parentId;
|
||||
}
|
||||
|
||||
if (item.Type == "Person") {
|
||||
query.PersonIds = item.Id;
|
||||
}
|
||||
|
@ -218,8 +222,11 @@
|
|||
view.addEventListener('click', onListItemClick);
|
||||
|
||||
view.addEventListener('viewbeforeshow', function (e) {
|
||||
if (params.parentId) {
|
||||
ApiClient.getItem(Dashboard.getCurrentUserId(), params.parentId).then(function (parent) {
|
||||
|
||||
var parentId = params.genreId || params.parentId;
|
||||
|
||||
if (parentId) {
|
||||
ApiClient.getItem(Dashboard.getCurrentUserId(), parentId).then(function (parent) {
|
||||
LibraryMenu.setTitle(parent.Name);
|
||||
|
||||
onViewStyleChange(parent);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue