diff --git a/dashboard-ui/collections.html b/dashboard-ui/collections.html index 2c0cc6e8ad..6acb307939 100644 --- a/dashboard-ui/collections.html +++ b/dashboard-ui/collections.html @@ -17,7 +17,6 @@
-
@@ -45,7 +44,7 @@ -
+
@@ -76,7 +75,7 @@
-
+
Filters: diff --git a/dashboard-ui/css/librarybrowser.css b/dashboard-ui/css/librarybrowser.css index ae48f93e03..73844d260c 100644 --- a/dashboard-ui/css/librarybrowser.css +++ b/dashboard-ui/css/librarybrowser.css @@ -36,10 +36,6 @@ font-size: 90%; } -.viewSummary { - padding: .5em 0; -} - .viewMenuLink { text-decoration: none; color: #ccc!important; diff --git a/dashboard-ui/episodes.html b/dashboard-ui/episodes.html index b0045117c8..c5b6143dd1 100644 --- a/dashboard-ui/episodes.html +++ b/dashboard-ui/episodes.html @@ -27,11 +27,10 @@
-
-
+
@@ -83,7 +82,7 @@
-
+
diff --git a/dashboard-ui/gamegenres.html b/dashboard-ui/gamegenres.html index 3371685cc3..14db812856 100644 --- a/dashboard-ui/gamegenres.html +++ b/dashboard-ui/gamegenres.html @@ -22,7 +22,7 @@
-
+
diff --git a/dashboard-ui/games.html b/dashboard-ui/games.html index c41ae75bc2..35445807b6 100644 --- a/dashboard-ui/games.html +++ b/dashboard-ui/games.html @@ -22,13 +22,12 @@
-
-
+
@@ -68,7 +67,7 @@
-
+
diff --git a/dashboard-ui/gamestudios.html b/dashboard-ui/gamestudios.html index 89c7bef510..b0f1160b64 100644 --- a/dashboard-ui/gamestudios.html +++ b/dashboard-ui/gamestudios.html @@ -22,7 +22,7 @@
-
+
diff --git a/dashboard-ui/itemdetails.html b/dashboard-ui/itemdetails.html index fbdd6246e1..a18c334c38 100644 --- a/dashboard-ui/itemdetails.html +++ b/dashboard-ui/itemdetails.html @@ -176,8 +176,9 @@
-
+
Alternate Versions +
diff --git a/dashboard-ui/itemlist.html b/dashboard-ui/itemlist.html index 815b5c5990..3808cc7467 100644 --- a/dashboard-ui/itemlist.html +++ b/dashboard-ui/itemlist.html @@ -29,11 +29,10 @@
-
-
+
@@ -79,7 +78,7 @@
-
+
diff --git a/dashboard-ui/livetvseriestimers.html b/dashboard-ui/livetvseriestimers.html index 26804ba5eb..3a7d41341b 100644 --- a/dashboard-ui/livetvseriestimers.html +++ b/dashboard-ui/livetvseriestimers.html @@ -23,7 +23,7 @@
-
+
diff --git a/dashboard-ui/moviegenres.html b/dashboard-ui/moviegenres.html index 8117410759..13267fcdd7 100644 --- a/dashboard-ui/moviegenres.html +++ b/dashboard-ui/moviegenres.html @@ -26,7 +26,7 @@
-
+
diff --git a/dashboard-ui/moviepeople.html b/dashboard-ui/moviepeople.html index 063c7bc48c..06780c3702 100644 --- a/dashboard-ui/moviepeople.html +++ b/dashboard-ui/moviepeople.html @@ -28,7 +28,7 @@
-
+
diff --git a/dashboard-ui/movies.html b/dashboard-ui/movies.html index a97c258e1a..8603e4b8f9 100644 --- a/dashboard-ui/movies.html +++ b/dashboard-ui/movies.html @@ -32,11 +32,10 @@
- +
-
-
+
@@ -107,7 +106,7 @@
-
+
diff --git a/dashboard-ui/moviestudios.html b/dashboard-ui/moviestudios.html index 0015df0479..48e0bad88e 100644 --- a/dashboard-ui/moviestudios.html +++ b/dashboard-ui/moviestudios.html @@ -26,7 +26,7 @@
-
+
diff --git a/dashboard-ui/movietrailers.html b/dashboard-ui/movietrailers.html index 308248a9c8..83bcff0363 100644 --- a/dashboard-ui/movietrailers.html +++ b/dashboard-ui/movietrailers.html @@ -26,11 +26,10 @@
-
-
+
@@ -81,7 +80,7 @@
-
+
diff --git a/dashboard-ui/musicalbumartists.html b/dashboard-ui/musicalbumartists.html index 3bde053304..503f4a7147 100644 --- a/dashboard-ui/musicalbumartists.html +++ b/dashboard-ui/musicalbumartists.html @@ -27,7 +27,7 @@
-
+
diff --git a/dashboard-ui/musicalbums.html b/dashboard-ui/musicalbums.html index ff56ef41af..ee502e4654 100644 --- a/dashboard-ui/musicalbums.html +++ b/dashboard-ui/musicalbums.html @@ -32,11 +32,10 @@
-
-
+
@@ -74,7 +73,7 @@
-
+
diff --git a/dashboard-ui/musicartists.html b/dashboard-ui/musicartists.html index 9152311dcc..b2266659be 100644 --- a/dashboard-ui/musicartists.html +++ b/dashboard-ui/musicartists.html @@ -27,7 +27,7 @@
-
+
diff --git a/dashboard-ui/musicgenres.html b/dashboard-ui/musicgenres.html index e2b99c480d..8ee43350d5 100644 --- a/dashboard-ui/musicgenres.html +++ b/dashboard-ui/musicgenres.html @@ -21,7 +21,6 @@
-
diff --git a/dashboard-ui/musicvideos.html b/dashboard-ui/musicvideos.html index f8fdf18556..ddf0a98baa 100644 --- a/dashboard-ui/musicvideos.html +++ b/dashboard-ui/musicvideos.html @@ -26,11 +26,10 @@
-
-
+
@@ -85,7 +84,7 @@
-
+
diff --git a/dashboard-ui/scripts/episodes.js b/dashboard-ui/scripts/episodes.js index 622b0c8bd4..d9f13eb4de 100644 --- a/dashboard-ui/scripts/episodes.js +++ b/dashboard-ui/scripts/episodes.js @@ -28,9 +28,6 @@ updateFilterControls(); - var checkSortOption = $('.radioSortBy:checked', page); - $('.viewSummary', page).html(LibraryBrowser.getViewSummaryHtml(query, checkSortOption)).trigger('create'); - html += LibraryBrowser.getPosterViewHtml({ items: result.Items, useAverageAspectRatio: true, diff --git a/dashboard-ui/scripts/gamespage.js b/dashboard-ui/scripts/gamespage.js index 4a6cdddc97..9de7c08bc3 100644 --- a/dashboard-ui/scripts/gamespage.js +++ b/dashboard-ui/scripts/gamespage.js @@ -27,9 +27,6 @@ updateFilterControls(page); - var checkSortOption = $('.radioSortBy:checked', page); - $('.viewSummary', page).html(LibraryBrowser.getViewSummaryHtml(query, checkSortOption)).trigger('create'); - html = LibraryBrowser.getPosterViewHtml({ items: result.Items, shape: "auto", diff --git a/dashboard-ui/scripts/itemdetailpage.js b/dashboard-ui/scripts/itemdetailpage.js index 2e783dc3b5..d2a5ac9af8 100644 --- a/dashboard-ui/scripts/itemdetailpage.js +++ b/dashboard-ui/scripts/itemdetailpage.js @@ -901,23 +901,29 @@ userId: user.Id }); - $.getJSON(url).done(function (result) { + $.getJSON(url).done(function (items) { - if (result.Items.length) { + if (items.length) { $('#alternateVersionsCollapsible', page).show(); var html = LibraryBrowser.getPosterViewHtml({ - items: result.Items, + items: items.map(function (i) { + var extended = $.extend({}, item, i); + extended.Id = item.Id; + return extended; + }), shape: "portrait", context: 'movies', useAverageAspectRatio: true, showTitle: true, centerText: true, - formatIndicators: true + formatIndicators: true, + linkItem: false, + showProgress: false }); - $('#alternateVersionsContent', page).html(html).trigger('create').createPosterItemMenus(); + $('#alternateVersionsContent', page).html(html).trigger('create'); } else { $('#alternateVersionsCollapsible', page).hide(); } diff --git a/dashboard-ui/scripts/itemlistpage.js b/dashboard-ui/scripts/itemlistpage.js index 317ad1249e..a777c2107e 100644 --- a/dashboard-ui/scripts/itemlistpage.js +++ b/dashboard-ui/scripts/itemlistpage.js @@ -30,9 +30,6 @@ updateFilterControls(page); - var checkSortOption = $('.radioSortBy:checked', page); - $('.viewSummary', page).html(LibraryBrowser.getViewSummaryHtml(query, checkSortOption)).trigger('create'); - if (view == "Backdrop") { html = LibraryBrowser.getPosterViewHtml({ diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index 5673048b72..0337402364 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -665,7 +665,9 @@ cssClass += ' ' + options.shape + 'PosterItem'; - html += ''; + var href = options.linkItem === false ? '#' : LibraryBrowser.getHref(item, options.context); + + html += ''; // Ribbon if (item.MediaType == "Video" && options.formatIndicators) { @@ -706,7 +708,7 @@ imageCssClass += " coveredPosterItemImage"; } - var progressHtml = LibraryBrowser.getItemProgressBarHtml(item); + var progressHtml = options.showProgress === false ? '' : LibraryBrowser.getItemProgressBarHtml(item); html += '
'; @@ -731,7 +733,7 @@ var chkItemSelectId = 'chkItemSelect' + i; // Render this pre-enhanced to save on jquery mobile dom manipulation - html += '
'; + html += '
'; } @@ -1158,21 +1160,6 @@ } }, - getViewSummaryHtml: function (query, checkedSortOption) { - - var html = ''; - - if (query.SortBy) { - - var id = checkedSortOption[0].id; - var sortBy = checkedSortOption.siblings('label[for=' + id + ']').text(); - - html += 'Sorted by ' + sortBy.trim().toLowerCase() + ', ' + (query.SortOrder || 'ascending').toLowerCase(); - } - - return html; - }, - getPagingHtml: function (query, totalRecordCount, updatePageSizeSetting, pageSizes, showLimit) { if (query.Limit && updatePageSizeSetting !== false) { diff --git a/dashboard-ui/scripts/librarylist.js b/dashboard-ui/scripts/librarylist.js index e7e7da346b..ed448b68a1 100644 --- a/dashboard-ui/scripts/librarylist.js +++ b/dashboard-ui/scripts/librarylist.js @@ -175,18 +175,25 @@ function splitVersions(id, page) { - Dashboard.showLoadingMsg(); + Dashboard.confirm("Are you sure you wish to split the versions apart into separate items?", "Split Versions Apart", function (confirmResult) { - $.ajax({ - type: "DELETE", - url: ApiClient.getUrl("Videos/" + id + "/AlternateVersions") + if (confirmResult) { - }).done(function () { + Dashboard.showLoadingMsg(); - Dashboard.hideLoadingMsg(); + $.ajax({ + type: "DELETE", + url: ApiClient.getUrl("Videos/" + id + "/AlternateVersions") - $('.itemsContainer', page).trigger('needsrefresh'); + }).done(function () { + + Dashboard.hideLoadingMsg(); + + $('.itemsContainer', page).trigger('needsrefresh'); + }); + } }); + } function getContextMenuOptions(elem) { @@ -205,7 +212,7 @@ items.push({ type: 'divider' }); items.push({ type: 'header', text: 'Manage' }); - items.push({ type: 'command', text: 'Split Versions', name: 'SplitVersions' }); + items.push({ type: 'command', text: 'Split Versions Apart', name: 'SplitVersions' }); } return items; @@ -221,7 +228,7 @@ return; } - if ($('.itemSelectionPanel', elem).length) { + if ($('.itemSelectionPanel:visible', elem).length) { return; } diff --git a/dashboard-ui/scripts/moviecollections.js b/dashboard-ui/scripts/moviecollections.js index ac9db18fc2..15fdc48755 100644 --- a/dashboard-ui/scripts/moviecollections.js +++ b/dashboard-ui/scripts/moviecollections.js @@ -28,9 +28,6 @@ if (result.TotalRecordCount) { - var checkSortOption = $('.radioSortBy:checked', page); - $('.viewSummary', page).html(LibraryBrowser.getViewSummaryHtml(query, checkSortOption)).trigger('create'); - html = LibraryBrowser.getPosterViewHtml({ items: result.Items, shape: "portrait", diff --git a/dashboard-ui/scripts/movies.js b/dashboard-ui/scripts/movies.js index d6390e9105..8cb64c2e10 100644 --- a/dashboard-ui/scripts/movies.js +++ b/dashboard-ui/scripts/movies.js @@ -29,9 +29,6 @@ updateFilterControls(page); - var checkSortOption = $('.radioSortBy:checked', page); - $('.viewSummary', page).html(LibraryBrowser.getViewSummaryHtml(query, checkSortOption)).trigger('create'); - if (view == "Thumb") { html = LibraryBrowser.getPosterViewHtml({ items: result.Items, diff --git a/dashboard-ui/scripts/movietrailers.js b/dashboard-ui/scripts/movietrailers.js index 2b3f150fa5..e4364d0e4c 100644 --- a/dashboard-ui/scripts/movietrailers.js +++ b/dashboard-ui/scripts/movietrailers.js @@ -26,9 +26,6 @@ updateFilterControls(page); - var checkSortOption = $('.radioSortBy:checked', page); - $('.viewSummary', page).html(LibraryBrowser.getViewSummaryHtml(query, checkSortOption)).trigger('create'); - html = LibraryBrowser.getPosterViewHtml({ items: result.Items, shape: "portrait", diff --git a/dashboard-ui/scripts/musicalbums.js b/dashboard-ui/scripts/musicalbums.js index a8cdc6c399..45e4e2738a 100644 --- a/dashboard-ui/scripts/musicalbums.js +++ b/dashboard-ui/scripts/musicalbums.js @@ -28,9 +28,6 @@ updateFilterControls(page); - var checkSortOption = $('.radioSortBy:checked', page); - $('.viewSummary', page).html(LibraryBrowser.getViewSummaryHtml(query, checkSortOption)).trigger('create'); - if (view == "Poster") { html = LibraryBrowser.getPosterViewHtml({ items: result.Items, diff --git a/dashboard-ui/scripts/musicvideos.js b/dashboard-ui/scripts/musicvideos.js index 1df1ba34a4..2cc211b7cd 100644 --- a/dashboard-ui/scripts/musicvideos.js +++ b/dashboard-ui/scripts/musicvideos.js @@ -26,9 +26,6 @@ updateFilterControls(page); - var checkSortOption = $('.radioSortBy:checked', page); - $('.viewSummary', page).html(LibraryBrowser.getViewSummaryHtml(query, checkSortOption)).trigger('create'); - html = LibraryBrowser.getPosterViewHtml({ items: result.Items, shape: "square", diff --git a/dashboard-ui/scripts/songs.js b/dashboard-ui/scripts/songs.js index 774ab87f16..8dd595c3cc 100644 --- a/dashboard-ui/scripts/songs.js +++ b/dashboard-ui/scripts/songs.js @@ -47,9 +47,6 @@ updateFilterControls(page); - var checkSortOption = $('.radioSortBy:checked', page); - $('.viewSummary', page).html(LibraryBrowser.getViewSummaryHtml(query, checkSortOption)).trigger('create'); - html += LibraryBrowser.getSongTableHtml(result.Items, { showAlbum: true, showArtist: true, diff --git a/dashboard-ui/scripts/tvshows.js b/dashboard-ui/scripts/tvshows.js index 1e1a8ca3ab..12cfa73aa4 100644 --- a/dashboard-ui/scripts/tvshows.js +++ b/dashboard-ui/scripts/tvshows.js @@ -28,9 +28,6 @@ updateFilterControls(page); - var checkSortOption = $('.radioSortBy:checked', page); - $('.viewSummary', page).html(LibraryBrowser.getViewSummaryHtml(query, checkSortOption)).trigger('create'); - if (view == "Thumb") { html = LibraryBrowser.getPosterViewHtml({ diff --git a/dashboard-ui/songs.html b/dashboard-ui/songs.html index 7a81b6ea99..c496b09bee 100644 --- a/dashboard-ui/songs.html +++ b/dashboard-ui/songs.html @@ -22,11 +22,10 @@
-
-
+
@@ -75,7 +74,7 @@
-
+
diff --git a/dashboard-ui/tvgenres.html b/dashboard-ui/tvgenres.html index 5d49788000..c132b70148 100644 --- a/dashboard-ui/tvgenres.html +++ b/dashboard-ui/tvgenres.html @@ -25,7 +25,7 @@
-
+
diff --git a/dashboard-ui/tvpeople.html b/dashboard-ui/tvpeople.html index 5b70ac2bb7..ccf22b4fc4 100644 --- a/dashboard-ui/tvpeople.html +++ b/dashboard-ui/tvpeople.html @@ -28,7 +28,7 @@
-
+
diff --git a/dashboard-ui/tvshows.html b/dashboard-ui/tvshows.html index 9443ed8246..363a6e897e 100644 --- a/dashboard-ui/tvshows.html +++ b/dashboard-ui/tvshows.html @@ -34,11 +34,10 @@
-
-
+
@@ -78,7 +77,7 @@
-
+
Filters: diff --git a/dashboard-ui/tvstudios.html b/dashboard-ui/tvstudios.html index 8c0ceaed3c..21bc7dde02 100644 --- a/dashboard-ui/tvstudios.html +++ b/dashboard-ui/tvstudios.html @@ -25,7 +25,7 @@
-
+