diff --git a/ApiClient.js b/ApiClient.js index 49ce5fd95..7a90b12c9 100644 --- a/ApiClient.js +++ b/ApiClient.js @@ -687,6 +687,16 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi }); }; + self.clearOrganizationLog = function () { + + var url = self.getUrl("Library/FileOrganizations"); + + return self.ajax({ + type: "DELETE", + url: url + }); + }; + self.performOrganization = function (id) { var url = self.getUrl("Library/FileOrganizations/" + id + "/Organize"); @@ -697,6 +707,16 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi }); }; + self.performEpisodeOrganization = function (id, options) { + + var url = self.getUrl("Library/FileOrganizations/" + id + "/Episode/Organize", options || {}); + + return self.ajax({ + type: "POST", + url: url + }); + }; + self.getLiveTvSeriesTimer = function (id) { if (!id) { @@ -2984,7 +3004,14 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi throw new Error("null userId"); } - var url = self.getUrl("Users/" + userId + "/Items", options); + var url; + + if ((typeof userId).toString().toLowerCase() == 'string') { + url = self.getUrl("Users/" + userId + "/Items", options); + } else { + options = userId; + url = self.getUrl("Items", options || {}); + } return self.ajax({ type: "GET", diff --git a/dashboard-ui/css/site.css b/dashboard-ui/css/site.css index 4c04b9609..666dc49d9 100644 --- a/dashboard-ui/css/site.css +++ b/dashboard-ui/css/site.css @@ -828,7 +828,7 @@ progress { } .latestNewsItems { - max-width: 300px; + max-width: 280px; } .dashboardHomeRightColumn { @@ -836,6 +836,13 @@ progress { } } +@media all and (min-width: 1500px) { + + .latestNewsItems { + max-width: 300px; + } +} + @media all and (min-width: 1600px) { .latestNewsItems { @@ -854,4 +861,13 @@ progress { .organizerButton { margin-top: 0; margin-bottom: 0; -} \ No newline at end of file +} + +.btnShowStatusMessage { + font-weight: normal!important; + text-decoration: none; +} + + .btnShowStatusMessage:hover { + text-decoration: underline; + } diff --git a/dashboard-ui/itemdetails.html b/dashboard-ui/itemdetails.html index aff0927cf..c8433ab48 100644 --- a/dashboard-ui/itemdetails.html +++ b/dashboard-ui/itemdetails.html @@ -157,10 +157,6 @@