update genre queries
This commit is contained in:
@@ -320,6 +320,10 @@
|
||||
|
||||
function getMoreItemsHref(item, type) {
|
||||
|
||||
if (item.Type == 'Genre' || item.Type == 'MusicGenre' || item.Type == 'GameGenre') {
|
||||
return 'secondaryitems.html?type=' + type + '&genreId=' + item.Id + '&parentId=' + params.topParentId;
|
||||
}
|
||||
|
||||
return 'secondaryitems.html?type=' + type + '&parentId=' + item.Id;
|
||||
}
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
|
||||
function getMoreItemsHref(itemId, type) {
|
||||
|
||||
return 'secondaryitems.html?type=' + type + '&parentId=' + itemId;
|
||||
return 'secondaryitems.html?type=' + type + '&genreId=' + itemId + '&parentId=' + params.topParentId;
|
||||
}
|
||||
|
||||
dom.addEventListener(tabContent, 'click', function (e) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
|
||||
function getMoreItemsHref(itemId, type) {
|
||||
|
||||
return 'secondaryitems.html?type=' + type + '&parentId=' + itemId;
|
||||
return 'secondaryitems.html?type=' + type + '&genreId=' + itemId + '&parentId=' + params.topParentId;
|
||||
}
|
||||
|
||||
dom.addEventListener(tabContent, 'click', function (e) {
|
||||
|
||||
Reference in New Issue
Block a user