From e4a3d35a5f238218c90b669c5f7d6e4038c9a122 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 1 Apr 2013 20:54:06 -0400 Subject: [PATCH] added oga, webma to audio streaming url --- dashboard-ui/css/librarybrowser.css | 3 ++- dashboard-ui/movies.html | 5 ++++- dashboard-ui/moviesrecommended.html | 1 - dashboard-ui/scripts/aboutpage.js | 6 +++--- dashboard-ui/scripts/indexpage.js | 6 +++--- dashboard-ui/scripts/movies.js | 28 ++++++++++++++++++++++++++++ 6 files changed, 40 insertions(+), 9 deletions(-) create mode 100644 dashboard-ui/scripts/movies.js diff --git a/dashboard-ui/css/librarybrowser.css b/dashboard-ui/css/librarybrowser.css index b4c91ca03a..f4dbddd2bb 100644 --- a/dashboard-ui/css/librarybrowser.css +++ b/dashboard-ui/css/librarybrowser.css @@ -25,7 +25,7 @@ } .listHeader { - margin-top: 1.25em; + margin-top: 1em; margin-bottom: 5px; font-weight: normal; } @@ -36,6 +36,7 @@ .libraryViewNav { text-align: center; + margin-bottom: 1.5em!important; } .libraryViewNav .ui-btn-inner { diff --git a/dashboard-ui/movies.html b/dashboard-ui/movies.html index 95d1fbfca1..a6b06e41ed 100644 --- a/dashboard-ui/movies.html +++ b/dashboard-ui/movies.html @@ -15,8 +15,11 @@ Genres Actors Directors - Favorites +
+ +
+
diff --git a/dashboard-ui/moviesrecommended.html b/dashboard-ui/moviesrecommended.html index 33ee98b284..8d81b04ea8 100644 --- a/dashboard-ui/moviesrecommended.html +++ b/dashboard-ui/moviesrecommended.html @@ -15,7 +15,6 @@ Genres Actors Directors - Favorites
diff --git a/dashboard-ui/scripts/aboutpage.js b/dashboard-ui/scripts/aboutpage.js index bc6ceda14d..d4fbf85412 100644 --- a/dashboard-ui/scripts/aboutpage.js +++ b/dashboard-ui/scripts/aboutpage.js @@ -1,12 +1,12 @@ -(function ($, document) { +(function ($, document, apiClient) { $(document).on('pageshow', "#aboutPage", function () { var page = this; - ApiClient.getSystemInfo().done(function(info) { + apiClient.getSystemInfo().done(function(info) { $('#appVersionNumber', page).html(info.Version); }); }); -})(jQuery, document); \ No newline at end of file +})(jQuery, document, ApiClient); \ No newline at end of file diff --git a/dashboard-ui/scripts/indexpage.js b/dashboard-ui/scripts/indexpage.js index 39fe032279..dfd932416d 100644 --- a/dashboard-ui/scripts/indexpage.js +++ b/dashboard-ui/scripts/indexpage.js @@ -1,4 +1,4 @@ -(function ($, document) { +(function ($, document, apiClient) { $(document).on('pageshow', "#indexPage", function () { @@ -17,7 +17,7 @@ sortBy: "SortName" }; - ApiClient.getItems(userId, options).done(function (result) { + apiClient.getItems(userId, options).done(function (result) { $('#divCollections', page).html(Dashboard.getPosterViewHtml({ items: result.Items, @@ -48,4 +48,4 @@ $('#views', page).html(html); }); -})(jQuery, document); \ No newline at end of file +})(jQuery, document, ApiClient); \ No newline at end of file diff --git a/dashboard-ui/scripts/movies.js b/dashboard-ui/scripts/movies.js new file mode 100644 index 0000000000..76b455d91e --- /dev/null +++ b/dashboard-ui/scripts/movies.js @@ -0,0 +1,28 @@ +(function ($, document) { + + $(document).on('pageshow', "#moviesPage", function () { + + var page = this; + + var options = { + + SortBy: "SortName", + SortOrder: "Ascending", + IncludeItemTypes: "Movie", + Recursive: true, + Fields: "PrimaryImageAspectRatio" + }; + + ApiClient.getItems(Dashboard.getCurrentUserId(), options).done(function (result) { + + $('#items', page).html(Dashboard.getPosterViewHtml({ + items: result.Items, + useAverageAspectRatio: true + })); + + }); + + }); + + +})(jQuery, document); \ No newline at end of file