From c2c329761439f5dc2b2b3f10947447cac89433aa Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 7 Apr 2013 09:34:46 -0400 Subject: [PATCH] Added 3D filter to movies page --- dashboard-ui/css/librarybrowser.css | 2 +- dashboard-ui/css/site.css | 2 +- dashboard-ui/movies.html | 3 +++ dashboard-ui/plugincatalog.html | 2 +- dashboard-ui/scripts/movies.js | 9 +++++++++ 5 files changed, 15 insertions(+), 3 deletions(-) diff --git a/dashboard-ui/css/librarybrowser.css b/dashboard-ui/css/librarybrowser.css index 85c688a94..34e58b25c 100644 --- a/dashboard-ui/css/librarybrowser.css +++ b/dashboard-ui/css/librarybrowser.css @@ -54,7 +54,7 @@ .viewSettings { text-align: center; - margin: 1em 0; + margin: 1.5em 0; } .libraryItemsGrid th { diff --git a/dashboard-ui/css/site.css b/dashboard-ui/css/site.css index bfbcf9042..537eef761 100644 --- a/dashboard-ui/css/site.css +++ b/dashboard-ui/css/site.css @@ -279,7 +279,7 @@ form, .readOnlyContent { right: 30px; } - .type-interior > .ui-content { + .type-interior > .ui-content, .type-interior > .ui-panel-content-wrap > .ui-content { padding-right: 0; padding-left: 0; padding-top: 0; diff --git a/dashboard-ui/movies.html b/dashboard-ui/movies.html index 7a5cb68d5..de244cf3b 100644 --- a/dashboard-ui/movies.html +++ b/dashboard-ui/movies.html @@ -112,6 +112,9 @@ + + + diff --git a/dashboard-ui/plugincatalog.html b/dashboard-ui/plugincatalog.html index 1694c8c6f..82219ec30 100644 --- a/dashboard-ui/plugincatalog.html +++ b/dashboard-ui/plugincatalog.html @@ -13,7 +13,7 @@ Plugin Catalog Automatic Updates -
+
diff --git a/dashboard-ui/scripts/movies.js b/dashboard-ui/scripts/movies.js index 5b3d4ed33..7a97f5156 100644 --- a/dashboard-ui/scripts/movies.js +++ b/dashboard-ui/scripts/movies.js @@ -207,6 +207,13 @@ reloadItems(page); }); + $('#chk3D', this).on('change', function () { + + query.VideoFormats = this.checked ? this.getAttribute('data-filter') : null; + + reloadItems(page); + }); + }).on('pagebeforeshow', "#moviesPage", function() { reloadItems(this); @@ -246,6 +253,8 @@ }).checkboxradio('refresh'); $('#selectView', this).val(view).selectmenu('refresh'); + + $('#chk3D', this).checked(query.VideoFormats == "Digital3D,Sbs3D").checkboxradio('refresh'); }); })(jQuery, document); \ No newline at end of file