From 46d9073d2900bd251725b778be2fd035af8f7415 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 12 Apr 2013 10:13:47 -0400 Subject: [PATCH] Added Budget, EndDate, HomePageUrl, ProductionLocations, --- dashboard-ui/scripts/librarybrowser.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index c8ada67c5..016f14b90 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -107,11 +107,11 @@ } var childText; - + if (item.Type == "BoxSet") { childText = item.ChildCount == 1 ? "1 Movie" : item.ChildCount + " Movies"; - + html += '

' + childText + '

'; } else if (item.Type == "Genre" || item.Type == "Studio" || item.Type == "Person") { @@ -165,13 +165,13 @@ return item.IsFolder ? (item.Id ? "itemList.html?parentId=" + item.Id : "#") : "itemdetails.html?id=" + item.Id; }, - + getPrimaryImageUrl: function (item, options) { options = options || {}; options.type = "Primary"; options.tag = item.ImageTags.Primary; - + if (item.Type == "Studio") { return ApiClient.getStudioImageUrl(item.Name, options); @@ -444,6 +444,10 @@ var html = 'Links:  '; var links = []; + if (item.HomePageUrl) { + links.push('Website'); + } + if (item.ProviderIds.Imdb) { if (item.Type == "Movie" || item.Type == "Episode") links.push('IMDb');