From fe459feef2ee8a378bb642358493b58f4519de23 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 22 Apr 2013 11:10:54 -0400 Subject: [PATCH] album detail page --- dashboard-ui/itemdetails.html | 9 +++++++++ dashboard-ui/scripts/Itemdetailpage.js | 11 ++++++++++- dashboard-ui/scripts/librarybrowser.js | 3 +++ 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/dashboard-ui/itemdetails.html b/dashboard-ui/itemdetails.html index 3f65184dba..195e66f2d6 100644 --- a/dashboard-ui/itemdetails.html +++ b/dashboard-ui/itemdetails.html @@ -63,6 +63,15 @@ Genres +
diff --git a/dashboard-ui/scripts/Itemdetailpage.js b/dashboard-ui/scripts/Itemdetailpage.js index 7b59116ff1..a8e700cdfc 100644 --- a/dashboard-ui/scripts/Itemdetailpage.js +++ b/dashboard-ui/scripts/Itemdetailpage.js @@ -76,7 +76,7 @@ enableCustomHeader(page, "TV Shows"); $('#standardLogo', page).hide(); } - else if (item.Type == "Audio") { + else if (item.Type == "Audio" || item.Type == "MusicAlbum") { enableCustomHeader(page, "Music"); $('#standardLogo', page).hide(); } @@ -85,6 +85,12 @@ $('#standardLogo', page).show(); } + if (item.Type == "MusicAlbum") { + $('#albumTabs', page).show(); + } else { + $('#albumTabs', page).hide(); + } + if (item.Type == "Audio") { $('#songTabs', page).show(); } else { @@ -216,6 +222,9 @@ else if (item.Type == "BoxSet") { $('#childrenTitle', page).html('Movies (' + item.ChildCount + ')'); } + else if (item.Type == "MusicAlbum") { + $('#childrenTitle', page).html('Songs (' + item.ChildCount + ')'); + } else { $('#childrenTitle', page).html('Items (' + item.ChildCount + ')'); } diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index 60d02440e9..9129e3ef07 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -167,6 +167,9 @@ if (item.Type == "BoxSet") { return "itemdetails.html?id=" + item.Id; } + if (item.Type == "MusicAlbum") { + return "itemdetails.html?id=" + item.Id; + } if (item.Type == "Genre") { return "itembynamedetails.html?genre=" + item.Name; }