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