album detail page

This commit is contained in:
Luke Pulverenti 2013-04-22 11:10:54 -04:00
parent dd808d8298
commit fe459feef2
3 changed files with 22 additions and 1 deletions

View File

@ -63,6 +63,15 @@
<a href="musicgenres.html" data-role="button">Genres</a>
</div>
</div>
<div id="albumTabs" style="display: none;">
<div data-role="controlgroup" data-type="horizontal" class="libraryViewNav" data-mini="true">
<a href="musicrecommended.html" data-role="button">Suggested</a>
<a href="#" data-role="button">Songs</a>
<a href="musicalbums.html" class="ui-btn-active" data-role="button">Albums</a>
<a href="musicartists.html" data-role="button">Artists</a>
<a href="musicgenres.html" data-role="button">Genres</a>
</div>
</div>
<div class="detailPageContent">
<div class="detailPagePrimaryInfo">
<div class="itemImageBlock">

View File

@ -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 + ')');
}

View File

@ -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;
}