diff --git a/ApiClient.js b/ApiClient.js index 04c85c5c8..1c5c6339a 100644 --- a/ApiClient.js +++ b/ApiClient.js @@ -257,6 +257,17 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout) { }); }; + self.getSimilarItems = function (itemId, options) { + + var url = self.getUrl("Items/" + itemId + "/Similar", options); + + return self.ajax({ + type: "GET", + url: url, + dataType: "json" + }); + }; + /** * Gets all cultures known to the server */ diff --git a/dashboard-ui/css/librarybrowser.css b/dashboard-ui/css/librarybrowser.css index 491ea5525..59736f3eb 100644 --- a/dashboard-ui/css/librarybrowser.css +++ b/dashboard-ui/css/librarybrowser.css @@ -203,6 +203,7 @@ .criticRatingSummary { background-color: #FFE482!important; + background-color: rgba(255,228,130,0.7); color: #000!important; } @@ -368,6 +369,9 @@ a.itemTag:hover { border: 1px solid #181818; background: #222; margin-top: 2em; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; } .detailSectionContent { diff --git a/dashboard-ui/itemdetails.html b/dashboard-ui/itemdetails.html index 4ca107d51..eac98daa0 100644 --- a/dashboard-ui/itemdetails.html +++ b/dashboard-ui/itemdetails.html @@ -130,10 +130,10 @@

-

+

@@ -170,6 +170,12 @@
+