better game context
This commit is contained in:
@@ -126,6 +126,12 @@
|
||||
if (context == "music" && item.Type == "Artist") {
|
||||
$('#artistTabs', page).show();
|
||||
}
|
||||
if (context == "games" && item.Type == "Genre") {
|
||||
$('#gameGenreTabs', page).show();
|
||||
}
|
||||
if (context == "games" && item.Type == "Studio") {
|
||||
$('#gameStudioTabs', page).show();
|
||||
}
|
||||
}
|
||||
|
||||
function renderTabs(page, item) {
|
||||
|
||||
@@ -317,6 +317,9 @@
|
||||
if (item.Type == "Artist") {
|
||||
return "itembynamedetails.html?artist=" + encodeName(item.Name) + "&context=" + (itemByNameContext || "music");
|
||||
}
|
||||
if (item.Type == "GamePlatform") {
|
||||
return "gamesystem.html?id=" + id;
|
||||
}
|
||||
|
||||
return item.IsFolder ? (id ? "itemList.html?parentId=" + id : "#") : "itemdetails.html?id=" + id;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user