From 13b4623b69f04c35ace06949a87227ad352de951 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 19 Apr 2013 20:44:35 -0400 Subject: [PATCH] display songs on ibn page --- dashboard-ui/scripts/itembynamedetailpage.js | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/dashboard-ui/scripts/itembynamedetailpage.js b/dashboard-ui/scripts/itembynamedetailpage.js index 26913ce1dd..69bb373b17 100644 --- a/dashboard-ui/scripts/itembynamedetailpage.js +++ b/dashboard-ui/scripts/itembynamedetailpage.js @@ -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 = ''; - $('.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({ items: result.Items,