From b0c57253c9b3ef5382758ba1252cba42cb0af7d0 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 9 Jul 2016 13:57:53 -0400 Subject: [PATCH 1/7] fix auto-organize icons --- dashboard-ui/scripts/autoorganizelog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard-ui/scripts/autoorganizelog.js b/dashboard-ui/scripts/autoorganizelog.js index 10efcc756f..4367256a76 100644 --- a/dashboard-ui/scripts/autoorganizelog.js +++ b/dashboard-ui/scripts/autoorganizelog.js @@ -192,8 +192,8 @@ if (item.Status != 'Success') { - html += ''; - html += ''; + html += ''; + html += ''; } html += ''; From f93fbda39a607620119487c48385537ca84925d9 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 11 Jul 2016 00:56:46 -0400 Subject: [PATCH 2/7] fix delete button in metadata editor --- dashboard-ui/components/metadataeditor/metadataeditor.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dashboard-ui/components/metadataeditor/metadataeditor.js b/dashboard-ui/components/metadataeditor/metadataeditor.js index 43a11332e8..8481043d6e 100644 --- a/dashboard-ui/components/metadataeditor/metadataeditor.js +++ b/dashboard-ui/components/metadataeditor/metadataeditor.js @@ -247,7 +247,7 @@ } function removeElementFromListview(source) { - $(source).parents('paper-icon-item').remove(); + $(source).parents('.listItem').remove(); } function editPerson(context, person, index) { @@ -353,9 +353,11 @@ } function onEditorClick(e) { + var btnRemoveFromEditorList = parentWithClass(e.target, 'btnRemoveFromEditorList'); if (btnRemoveFromEditorList) { removeElementFromListview(btnRemoveFromEditorList); + return; } var btnAddTextItem = parentWithClass(e.target, 'btnAddTextItem'); From 9d39c1e3eeb71f04aa189abb28033ba3854e9857 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 11 Jul 2016 00:57:04 -0400 Subject: [PATCH 3/7] fix nav drawer draggable when expanded --- dashboard-ui/css/librarymenu.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dashboard-ui/css/librarymenu.css b/dashboard-ui/css/librarymenu.css index e7052af336..3d3a3c2e2b 100644 --- a/dashboard-ui/css/librarymenu.css +++ b/dashboard-ui/css/librarymenu.css @@ -481,6 +481,11 @@ body:not(.dashboardDocument) .headerAppsButton { z-index: 998 !important; top: 65px !important; left: 0 !important; + transform: none !important; + } + + .dashboardDocument .tmla-mask { + display: none !important; } .dashboardDocument .mainDrawerButton { From 8eddeea1a9d4a4388f412498829e5bbc230d1c4a Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 12 Jul 2016 00:08:13 -0400 Subject: [PATCH 4/7] fix artist detail page --- dashboard-ui/scripts/itemdetailpage.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dashboard-ui/scripts/itemdetailpage.js b/dashboard-ui/scripts/itemdetailpage.js index e71de45a6b..d80a67e063 100644 --- a/dashboard-ui/scripts/itemdetailpage.js +++ b/dashboard-ui/scripts/itemdetailpage.js @@ -298,9 +298,7 @@ var section = page.querySelector('.nextUpSection'); - var userData = item.UserData || {}; - - if (item.Type != 'Series' || !userData.PlayedPercentage) { + if (item.Type != 'Series') { section.classList.add('hide'); return; } @@ -500,7 +498,7 @@ } var artist = page.querySelectorAll('.artist'); - for (i = 0, length = itemMiscInfo.length; i < length; i++) { + for (i = 0, length = artist.length; i < length; i++) { if (item.ArtistItems && item.ArtistItems.length && item.Type != "MusicAlbum") { artist[i].classList.remove('hide'); artist[i].innerHTML = getArtistLinksHtml(item.ArtistItems, context); From c9e9d57e290ae39216c795eb642640b3afafba8c Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 11 Jul 2016 15:00:13 -0400 Subject: [PATCH 5/7] fix queueallfromhere --- dashboard-ui/scripts/itemdetailpage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard-ui/scripts/itemdetailpage.js b/dashboard-ui/scripts/itemdetailpage.js index d80a67e063..d89c42013d 100644 --- a/dashboard-ui/scripts/itemdetailpage.js +++ b/dashboard-ui/scripts/itemdetailpage.js @@ -2153,8 +2153,8 @@ childrenItemsContainer.addEventListener('playallfromhere', function (e) { LibraryBrowser.playAllFromHere(_childrenItemsFunction, e.detail.index); }); - childrenItemsContainer.addEventListener('playallfromhere', function (e) { - LibraryBrowser.playAllFromHere(_childrenItemsFunction, e.detail.index); + childrenItemsContainer.addEventListener('queueallfromhere', function (e) { + LibraryBrowser.queueAllFromHere(_childrenItemsFunction, e.detail.index); }); view.addEventListener('click', function (e) { From 42840af961e0f464605d95db285d351f361f4968 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 11 Jul 2016 14:59:46 -0400 Subject: [PATCH 6/7] fix playlist index after drag and drop --- dashboard-ui/scripts/playlistedit.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dashboard-ui/scripts/playlistedit.js b/dashboard-ui/scripts/playlistedit.js index 56b0bf7b0b..c3c50dbee2 100644 --- a/dashboard-ui/scripts/playlistedit.js +++ b/dashboard-ui/scripts/playlistedit.js @@ -119,7 +119,7 @@ function onDrop(evt, page, item) { var el = evt.item; - + var newIndex = evt.newIndex; var itemId = el.getAttribute('data-playlistitemid'); @@ -134,6 +134,7 @@ }).then(function () { + el.setAttribute('data-index', newIndex); Dashboard.hideLoadingMsg(); }, function () { From d2b07a150afe71cffeaffa1af5754fa46f9c0669 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 13 Jul 2016 15:09:45 -0400 Subject: [PATCH 7/7] add list view to item list page --- dashboard-ui/scripts/itemlistpage.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dashboard-ui/scripts/itemlistpage.js b/dashboard-ui/scripts/itemlistpage.js index d0da7cb585..0365e84600 100644 --- a/dashboard-ui/scripts/itemlistpage.js +++ b/dashboard-ui/scripts/itemlistpage.js @@ -112,6 +112,13 @@ html = libraryBrowser.getPosterViewHtml(posterOptions); } + else if (viewStyle == "List") { + + html = libraryBrowser.getListViewHtml({ + items: result.Items, + sortBy: query.SortBy + }); + } else if (viewStyle == "Thumb") { posterOptions.preferThumb = true; @@ -259,7 +266,7 @@ var btnSelectView = view.querySelector('.btnSelectView'); btnSelectView.addEventListener('click', function (e) { - libraryBrowser.showLayoutMenu(e.target, getPageData().view, 'Poster,PosterCard,Thumb'.split(',')); + libraryBrowser.showLayoutMenu(e.target, getPageData().view, 'List,Poster,PosterCard,Thumb'.split(',')); }); btnSelectView.addEventListener('layoutchange', function (e) {