From 5584c5c7e310946aa6714c20aeea98d27033d977 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 27 Jul 2016 02:24:59 -0400 Subject: [PATCH] keep season/episode info up to date --- dashboard-ui/scripts/playlistedit.js | 29 ++++++++++++---------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/dashboard-ui/scripts/playlistedit.js b/dashboard-ui/scripts/playlistedit.js index b0b0c0b8d9..0135b68f53 100644 --- a/dashboard-ui/scripts/playlistedit.js +++ b/dashboard-ui/scripts/playlistedit.js @@ -1,4 +1,4 @@ -define(['appStorage', 'jQuery', 'listView'], function (appStorage, $, listView) { +define(['jQuery', 'listView'], function ($, listView) { var data = {}; function getPageData() { @@ -56,22 +56,17 @@ }); - var view = getPageData().view; - - if (view == "List") { - - html = listView.getListViewHtml({ - items: result.Items, - sortBy: query.SortBy, - showIndex: false, - showRemoveFromPlaylist: true, - playFromHere: true, - action: 'playallfromhere', - smallIcon: true, - dragHandle: true, - playlistId: item.Id - }); - } + html += listView.getListViewHtml({ + items: result.Items, + sortBy: query.SortBy, + showIndex: false, + showRemoveFromPlaylist: true, + playFromHere: true, + action: 'playallfromhere', + smallIcon: true, + dragHandle: true, + playlistId: item.Id + }); var elem = page.querySelector('#childrenContent .itemsContainer'); elem.innerHTML = html;