From c498998d9f9db4a46c8ada62ecae03ff8c8727a1 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 29 Nov 2016 14:13:01 -0500 Subject: [PATCH] update artist lists --- dashboard-ui/scripts/itembynamedetailpage.js | 8 ++++++-- dashboard-ui/scripts/secondaryitems.js | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/dashboard-ui/scripts/itembynamedetailpage.js b/dashboard-ui/scripts/itembynamedetailpage.js index f6dd74bc5a..5be329b44d 100644 --- a/dashboard-ui/scripts/itembynamedetailpage.js +++ b/dashboard-ui/scripts/itembynamedetailpage.js @@ -321,11 +321,15 @@ 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 + '&genreId=' + item.Id; } if (item.Type == 'Studio') { - return 'secondaryitems.html?type=' + type + '&studioId=' + item.Id + '&parentId=' + params.topParentId; + return 'secondaryitems.html?type=' + type + '&studioId=' + item.Id; + } + + if (item.Type == 'MusicArtist') { + return 'secondaryitems.html?type=' + type + '&artistId=' + item.Id; } return 'secondaryitems.html?type=' + type + '&parentId=' + item.Id; diff --git a/dashboard-ui/scripts/secondaryitems.js b/dashboard-ui/scripts/secondaryitems.js index 57477e3de3..f5bdb4c5a7 100644 --- a/dashboard-ui/scripts/secondaryitems.js +++ b/dashboard-ui/scripts/secondaryitems.js @@ -223,7 +223,7 @@ function getItemPromise() { - var id = params.genreId || params.studioId || params.parentId; + var id = params.genreId || params.studioId || params.artistId || params.parentId; if (id) { return ApiClient.getItem(Dashboard.getCurrentUserId(), id);