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..488d6160c4 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; @@ -432,7 +428,6 @@ a.itemTag:hover { background-position: center 15%; background-repeat: no-repeat; height: 550px; - border-bottom: 1px solid #111; position: relative; } @@ -771,6 +766,10 @@ a.itemTag:hover { .lnkSibling:not(.hide) { display: block; } + + .itemBackdrop { + border-bottom: 1px solid #111; + } } @media all and (min-width: 1000px) { @@ -1122,6 +1121,12 @@ a.itemTag:hover { padding: 1em; } + .itemSelectionPanel .ui-checkbox { + max-width: 90px; + margin-left: auto; + margin-right: auto; + } + .selectionCommandsControlGroup { display: inline-block; margin-left: .5em; diff --git a/dashboard-ui/css/site.css b/dashboard-ui/css/site.css index 132ab59b1a..f6d6574d6d 100644 --- a/dashboard-ui/css/site.css +++ b/dashboard-ui/css/site.css @@ -683,7 +683,6 @@ h1 .imageLink { z-index: 99997; color: #fff; border: 0 !important; - max-height: 220px; } .footerNotification { @@ -700,10 +699,6 @@ h1 .imageLink { vertical-align: middle; } -#dashboardVersionWarning { - line-height: 50px; -} - /* * Gradient Shadow */ diff --git a/dashboard-ui/episodes.html b/dashboard-ui/episodes.html index b0045117c8..8736aa4bb9 100644 --- a/dashboard-ui/episodes.html +++ b/dashboard-ui/episodes.html @@ -24,14 +24,19 @@
+
-
+
-
+
@@ -83,7 +88,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..cd4024bc23 100644 --- a/dashboard-ui/itemdetails.html +++ b/dashboard-ui/itemdetails.html @@ -131,6 +131,9 @@ + @@ -156,7 +159,6 @@

-

@@ -169,15 +171,10 @@
-
-
- Trailers -
-
-
-
- Alternate Versions +
+ Media Versions +
@@ -219,10 +216,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 88eac124bd..8603e4b8f9 100644 --- a/dashboard-ui/movies.html +++ b/dashboard-ui/movies.html @@ -32,21 +32,20 @@
- +
-
-
+
@@ -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..2e5fa70a40 100644 --- a/dashboard-ui/scripts/episodes.js +++ b/dashboard-ui/scripts/episodes.js @@ -28,16 +28,14 @@ updateFilterControls(); - var checkSortOption = $('.radioSortBy:checked', page); - $('.viewSummary', page).html(LibraryBrowser.getViewSummaryHtml(query, checkSortOption)).trigger('create'); - html += LibraryBrowser.getPosterViewHtml({ items: result.Items, useAverageAspectRatio: true, shape: "backdrop", showTitle: true, showParentTitle: true, - overlayText: true + overlayText: true, + selectionPanel: true }); $('.itemsContainer', page).removeClass('timelineItemsContainer'); @@ -263,6 +261,12 @@ reloadItems(page); }); + $('.itemsContainer', page).on('needsrefresh', function () { + + reloadItems(page); + + }); + }).on('pagebeforeshow', "#episodesPage", function () { var limit = LibraryBrowser.getDefaultPageSize(); 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..263cbb441a 100644 --- a/dashboard-ui/scripts/itemdetailpage.js +++ b/dashboard-ui/scripts/itemdetailpage.js @@ -57,11 +57,27 @@ $('#playExternalButtonContainer', page).hide(); } - if (item.LocalTrailerCount && item.LocationType !== "Offline" && item.PlayAccess == 'Full') { + if (item.LocalTrailerCount && item.PlayAccess == 'Full') { $('#trailerButtonContainer', page).show(); } else { $('#trailerButtonContainer', page).hide(); } + + if (!item.LocalTrailerCount && item.RemoteTrailers.length && item.PlayAccess == 'Full') { + $('#externalTrailerButtonContainer', page).show(); + + $('#btnPlayExternalTrailer', page).attr('href', item.RemoteTrailers[0].Url); + + } else { + $('#externalTrailerButtonContainer', page).hide(); + $('#btnPlayExternalTrailer', page).attr('href', '#'); + } + + if (user.Configuration.IsAdministrator) { + $('.btnSplitVersions', page).show(); + } else { + $('.btnSplitVersions', page).hide(); + } }); if (item.LocationType == "Offline") { @@ -203,12 +219,7 @@ $('#scenesCollapsible', page).show(); renderScenes(page, item, user, 4); } - if (item.LocalTrailerCount || !item.RemoteTrailers.length || item.Type == "Trailer") { - $('#trailersCollapsible', page).addClass('hide'); - } else { - $('#trailersCollapsible', page).removeClass('hide'); - renderTrailers(page, item, user); - } + if (!item.SpecialFeatureCount || item.SpecialFeatureCount == 0 || item.Type == "Series") { $('#specialsCollapsible', page).addClass('hide'); } else { @@ -745,7 +756,7 @@ ApiClient.getCriticReviews(item.Id, options).done(function (result) { - if (result.TotalRecordCount || item.CriticRatingSummary) { + if (result.TotalRecordCount || item.CriticRatingSummary || item.AwardSummary) { $('#criticReviewsCollapsible', page).show(); renderCriticReviewsContent(page, result, limit); } else { @@ -897,27 +908,34 @@ function renderAlternateVersions(page, item, user) { - var url = ApiClient.getUrl("Videos/" + item.Id + "/AlternateVersions", { + var url = ApiClient.getUrl("Videos/" + item.Id + "/Versions", { 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, + showUnplayedIndicator: false }); - $('#alternateVersionsContent', page).html(html).trigger('create').createPosterItemMenus(); + $('#alternateVersionsContent', page).html(html).trigger('create'); } else { $('#alternateVersionsCollapsible', page).hide(); } @@ -1015,7 +1033,7 @@ } if (stream.Width || stream.Height) { - attributes.push('' + stream.Width + 'x' + stream.Height + ''); + attributes.push('' + stream.Width + 'x' + stream.Height + ''); } if (stream.AspectRatio && stream.Codec != "mjpeg") { @@ -1122,38 +1140,6 @@ }); } - function renderTrailers(page, item, user) { - - if (item.Type == "Trailer") { - $('#trailerSectionHeader', page).html('More trailers'); - } else { - $('#trailerSectionHeader', page).html('Trailers'); - } - - var remoteTrailersHtml = ''; - - for (var i = 0, length = item.RemoteTrailers.length; i < length; i++) { - - var trailer = item.RemoteTrailers[i]; - - var id = getParameterByName('v', trailer.Url); - - if (id) { - remoteTrailersHtml += ''; - } - } - - var elem = $('#trailersContent', page).html(remoteTrailersHtml).css({ "position": "relative", "z-index": 0 }); - - if (item.LocalTrailerCount) { - ApiClient.getLocalTrailers(user.Id, item.Id).done(function (trailers) { - - elem.prepend(getVideosHtml(trailers, user)); - - }); - } - } - function renderCast(page, item, context, limit) { var html = ''; @@ -1226,6 +1212,39 @@ MediaPlayer.play([currentItem], startPosition); } + function splitVersions(page) { + + var id = getParameterByName('id'); + + Dashboard.confirm("Are you sure you wish to split the versions apart into separate items?", "Split Versions Apart", function (confirmResult) { + + if (confirmResult) { + + Dashboard.showLoadingMsg(); + + $.ajax({ + type: "DELETE", + url: ApiClient.getUrl("Videos/" + id + "/AlternateVersions") + + }).done(function () { + + Dashboard.hideLoadingMsg(); + + reload(page); + }); + } + }); + } + + function playTrailer(page) { + + ApiClient.getLocalTrailers(Dashboard.getCurrentUserId(), currentItem.Id).done(function (trailers) { + + MediaPlayer.play(trailers); + + }); + } + $(document).on('pageinit', "#itemDetailPage", function () { var page = this; @@ -1243,12 +1262,7 @@ }); $('#btnPlayTrailer', page).on('click', function () { - - ApiClient.getLocalTrailers(Dashboard.getCurrentUserId(), currentItem.Id).done(function (trailers) { - - MediaPlayer.play(trailers); - - }); + playTrailer(page); }); $('#btnPlayExternal', page).on('click', function () { @@ -1269,6 +1283,11 @@ }); }); + $('.btnSplitVersions', page).on('click', function () { + + splitVersions(page); + }); + }).on('pageshow', "#itemDetailPage", function () { var page = this; 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 7aa544efdc..39f95e7550 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 f95219a413..adaba1bfa3 100644 --- a/dashboard-ui/scripts/librarylist.js +++ b/dashboard-ui/scripts/librarylist.js @@ -166,6 +166,34 @@ function onMenuCommand(command, elem) { var id = elem.getAttribute('data-itemid'); + var page = $(elem).parents('.page'); + + if (command == 'SplitVersions') { + splitVersions(id, page); + } + } + + function splitVersions(id, page) { + + Dashboard.confirm("Are you sure you wish to split the versions apart into separate items?", "Split Versions Apart", function (confirmResult) { + + if (confirmResult) { + + Dashboard.showLoadingMsg(); + + $.ajax({ + type: "DELETE", + url: ApiClient.getUrl("Videos/" + id + "/AlternateVersions") + + }).done(function () { + + Dashboard.hideLoadingMsg(); + + $('.itemsContainer', page).trigger('needsrefresh'); + }); + } + }); + } function getContextMenuOptions(elem) { @@ -173,7 +201,6 @@ var items = []; var id = elem.getAttribute('data-itemid'); - var mediatype = elem.getAttribute('data-mediatype'); items.push({ type: 'header', text: 'Edit' }); @@ -181,12 +208,12 @@ items.push({ type: 'link', text: 'Images', url: 'edititemimages.html?id=' + id }); - //if (mediatype == 'Video' && elem.getAttribute('data-locationtype') == 'FileSystem' && !elem.getAttribute('data-primaryversionid')) { + if (elem.getAttribute('data-alternateversioncount') != '0') { - // items.push({ type: 'divider' }); - // items.push({ type: 'header', text: 'Manage' }); - // items.push({ type: 'command', text: 'Alternate Versions', name: 'AlternateVersions' }); - //} + items.push({ type: 'divider' }); + items.push({ type: 'header', text: 'Manage' }); + items.push({ type: 'command', text: 'Split Versions Apart', name: 'SplitVersions' }); + } return items; } @@ -201,7 +228,7 @@ return; } - if ($('.itemSelectionPanel', elem).length) { + if ($('.itemSelectionPanel:visible', elem).length) { return; } @@ -260,11 +287,11 @@ if (user.Configuration.IsAdministrator) { - //sequence.createContextMenu({ - // getOptions: getContextMenuOptions, - // command: onMenuCommand, - // selector: '.posterItem' - //}); + sequence.createContextMenu({ + getOptions: getContextMenuOptions, + command: onMenuCommand, + selector: '.posterItem' + }); } }); @@ -290,6 +317,8 @@ selectionCommands.show(); $('.itemSelectionPanel', page).show(); + + $('.chkItemSelect:checked', page).checked(false).checkboxradio('refresh'); } Dashboard.hideLoadingMsg(); @@ -301,25 +330,25 @@ $('.itemSelectionPanel', page).hide(); } - + function getSelectedItems(page) { - + var selection = $('.chkItemSelect:checked', page); return selection.parents('.posterItem') - .map(function() { + .map(function () { return this.getAttribute('data-itemid'); }).get(); } - + function combineVersions(page) { var selection = getSelectedItems(page); - + if (selection.length < 2) { - + Dashboard.alert({ message: "Please select two or more items to combine.", title: "Error" @@ -328,7 +357,36 @@ return; } - hideSelections(); + var names = $('.chkItemSelect:checked', page).parents('.posterItem').get().reverse().map(function (e) { + + return $('.posterItemText', e).html(); + + }).join('
'); + + var msg = "The following titles will be grouped into one item:

" + names; + + msg += "

Media Browser clients will automatically choose the optimal version to play based on device and network performance. Are you sure you wish to continue?"; + + Dashboard.confirm(msg, "Group Versions", function (confirmResult) { + + if (confirmResult) { + + Dashboard.showLoadingMsg(); + + $.ajax({ + type: "POST", + url: ApiClient.getUrl("Videos/MergeVersions", { Ids: selection.join(',') }) + + }).done(function () { + + Dashboard.hideLoadingMsg(); + + hideSelections(); + + $('.itemsContainer', page).trigger('needsrefresh'); + }); + } + }); } $(document).on('pageinit', ".libraryPage", function () { @@ -339,10 +397,6 @@ toggleSelections(page); }); - $('.itemsContainer', page).on('listrender', function () { - hideSelections(page); - }); - $('.btnMergeVersions', page).on('click', function () { combineVersions(page); }); 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 2c635083c0..e670c38d59 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, @@ -70,7 +67,7 @@ html += LibraryBrowser.getPagingHtml(query, result.TotalRecordCount); - $('#items', page).html(html).trigger('create').createPosterItemMenus().trigger('listrender'); + $('#items', page).html(html).trigger('create').createPosterItemMenus(); $('.btnNextPage', page).on('click', function () { query.StartIndex += query.Limit; @@ -345,6 +342,12 @@ reloadItems(page); }); + $('.itemsContainer', page).on('needsrefresh', function() { + + reloadItems(page); + + }); + }).on('pagebeforeshow', "#moviesPage", function () { var page = this; 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/scheduledtaskpage.js b/dashboard-ui/scripts/scheduledtaskpage.js index af1ebe5b51..a3f1e31022 100644 --- a/dashboard-ui/scripts/scheduledtaskpage.js +++ b/dashboard-ui/scripts/scheduledtaskpage.js @@ -102,11 +102,11 @@ hours = 0; } - hours = hours.toFixed(0); + hours = Math.floor(hours); ticks -= (hours * 36000000000); - var minutes = (ticks / 600000000).toFixed(0); + var minutes = Math.floor((ticks / 600000000)); var suffix = "am"; 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 @@
-
+