display songs on ibn page

This commit is contained in:
Luke Pulverenti 2013-04-19 20:44:35 -04:00
parent b048864e57
commit 13b4623b69

View File

@ -164,6 +164,11 @@
loadItems(page, { IncludeItemTypes: "MusicAlbum", PersonTypes: "Artist" });
});
$("#radioSongs", page).on("click", function () {
loadItems(page, { IncludeItemTypes: "Audio", PersonTypes: "Artist" });
});
}
function renderDetails(page, item) {
@ -189,8 +194,7 @@
$('#itemBirthday', page).show().html("Birthday:  " + birthday);
}
catch(err)
{
catch (err) {
$('#itemBirthday', page).hide();
}
} else {
@ -259,7 +263,13 @@
ApiClient.getItems(Dashboard.getCurrentUserId(), query).done(function (result) {
var html = '';
if (result.TotalRecordCount > query.Limit) {
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');
$('.viewSettings', page).show();
} else {
$('.listTopPaging', page).html('');
$('.viewSettings', page).hide();
}
html += LibraryBrowser.getPosterDetailViewHtml({
items: result.Items,