diff --git a/dashboard-ui/scripts/episodes.js b/dashboard-ui/scripts/episodes.js
index 1a1bd0bdd..bc254a2ff 100644
--- a/dashboard-ui/scripts/episodes.js
+++ b/dashboard-ui/scripts/episodes.js
@@ -50,7 +50,6 @@
html = LibraryBrowser.getListViewHtml({
items: result.Items,
- context: 'tv',
sortBy: query.SortBy
});
trigger = true;
@@ -63,7 +62,6 @@
showParentTitle: true,
overlayText: true,
lazy: true,
- context: 'tv',
showDetailsMenu: true
});
}
@@ -74,7 +72,6 @@
showTitle: true,
showParentTitle: true,
lazy: true,
- context: 'tv',
cardLayout: true,
showDetailsMenu: true
});
diff --git a/dashboard-ui/scripts/itemdetailpage.js b/dashboard-ui/scripts/itemdetailpage.js
index 54230b6fc..0fb2ff2e5 100644
--- a/dashboard-ui/scripts/itemdetailpage.js
+++ b/dashboard-ui/scripts/itemdetailpage.js
@@ -24,7 +24,7 @@
LibraryBrowser.renderName(item, $('.itemName', page), false, context);
LibraryBrowser.renderParentName(item, $('.parentName', page), context);
- LibraryMenu.setTitle(item.Name);
+ LibraryMenu.setTitle(item.SeriesName || item.Name);
Dashboard.getCurrentUser().done(function (user) {
@@ -213,22 +213,7 @@
$('.itemTabs', page).hide();
- if (context == 'photos' || context == 'photos-photos') {
- $(page).removeClass('noSecondaryNavPage');
-
- var elem = $('.photoTabs', page).show();
- $('a', elem).removeClass('ui-btn-active');
-
- if (context == 'photos-photos') {
- $('.lnkPhotos', page).addClass('ui-btn-active');
- }
- else if (context == 'photos-videos') {
- $('.lnkVideos', page).addClass('ui-btn-active');
- } else {
- $('.lnkPhotoAlbums', page).addClass('ui-btn-active');
- }
- }
- else if (context == 'tv') {
+ if (context == 'tv') {
$(page).removeClass('noSecondaryNavPage');
$('#tvShowsTabs', page).show();
@@ -763,7 +748,6 @@
shape: "detailPage169",
showTitle: true,
displayAsSpecial: item.Type == "Season" && item.IndexNumber,
- context: context,
playFromHere: true,
overlayText: true,
lazy: true,
@@ -777,7 +761,6 @@
shape: "auto",
showTitle: true,
centerText: true,
- context: context,
lazy: true,
showDetailsMenu: true
});
diff --git a/dashboard-ui/scripts/librarymenu.js b/dashboard-ui/scripts/librarymenu.js
index 38a1958ef..68b4b5c4e 100644
--- a/dashboard-ui/scripts/librarymenu.js
+++ b/dashboard-ui/scripts/librarymenu.js
@@ -253,7 +253,7 @@
html += '
';
}
} else {
- html += '
';
+ html += '
';
}
html += '
';
diff --git a/dashboard-ui/scripts/moviegenres.js b/dashboard-ui/scripts/moviegenres.js
index 53817df11..f739644c8 100644
--- a/dashboard-ui/scripts/moviegenres.js
+++ b/dashboard-ui/scripts/moviegenres.js
@@ -61,8 +61,17 @@
})).trigger('create');
updateFilterControls(page);
+ var trigger = false;
- if (view == "Thumb") {
+ if (view == "List") {
+
+ html = LibraryBrowser.getListViewHtml({
+ items: result.Items,
+ sortBy: query.SortBy
+ });
+ trigger = true;
+ }
+ else if (view == "Thumb") {
html = LibraryBrowser.getPosterViewHtml({
items: result.Items,
shape: "backdrop",
@@ -112,6 +121,10 @@
elem.innerHTML = html;
ImageLoader.lazyChildren(elem);
+ if (trigger) {
+ $(elem).trigger('create');
+ }
+
$('.btnNextPage', page).on('click', function () {
query.StartIndex += query.Limit;
reloadItems(page);
diff --git a/dashboard-ui/scripts/playlists.js b/dashboard-ui/scripts/playlists.js
index bdee1a740..406460eca 100644
--- a/dashboard-ui/scripts/playlists.js
+++ b/dashboard-ui/scripts/playlists.js
@@ -83,7 +83,6 @@
html = LibraryBrowser.getListViewHtml({
items: result.Items,
- context: 'playlists',
sortBy: query.SortBy
});
trigger = true;
@@ -92,7 +91,6 @@
html = LibraryBrowser.getPosterViewHtml({
items: result.Items,
shape: "square",
- context: 'playlists',
showTitle: true,
lazy: true,
coverImage: true,
@@ -104,7 +102,6 @@
html = LibraryBrowser.getPosterViewHtml({
items: result.Items,
shape: "square",
- context: 'playlists',
showTitle: true,
lazy: true,
coverImage: true,
@@ -113,6 +110,27 @@
overlayPlayButton: true
});
}
+ else if (view == "Thumb") {
+ html = LibraryBrowser.getPosterViewHtml({
+ items: result.Items,
+ shape: "backdrop",
+ showTitle: true,
+ centerText: true,
+ lazy: true,
+ preferThumb: true
+ });
+ }
+ else if (view == "ThumbCard") {
+ html = LibraryBrowser.getPosterViewHtml({
+ items: result.Items,
+ shape: "backdrop",
+ showTitle: true,
+ lazy: true,
+ preferThumb: true,
+ cardLayout: true,
+ showItemCounts: true
+ });
+ }
$('.noItemsMessage', page).hide();
diff --git a/dashboard-ui/scripts/sections.js b/dashboard-ui/scripts/sections.js
index 424c71071..e02645759 100644
--- a/dashboard-ui/scripts/sections.js
+++ b/dashboard-ui/scripts/sections.js
@@ -439,7 +439,7 @@
html += '
';
}
diff --git a/dashboard-ui/scripts/site.js b/dashboard-ui/scripts/site.js
index 19090f3ea..0f7e60fed 100644
--- a/dashboard-ui/scripts/site.js
+++ b/dashboard-ui/scripts/site.js
@@ -1336,7 +1336,7 @@ var Dashboard = {
html += '
' + (document.title || ' ') + '
';
if (helpUrl) {
- html += '
' + Globalize.translate('ButtonHelp') + '';
+ html += '
' + Globalize.translate('ButtonHelp') + '';
}
html += '
';
diff --git a/dashboard-ui/scripts/sync.js b/dashboard-ui/scripts/sync.js
index 3f7ce7d95..6435bda70 100644
--- a/dashboard-ui/scripts/sync.js
+++ b/dashboard-ui/scripts/sync.js
@@ -85,17 +85,17 @@
if (options.showName || dialogOptions.Options.indexOf('Name') != -1) {
- html += '
';
- html += '';
- html += '';
- html += '
';
+ html += '
';
+ html += '
';
+ html += '
';
+ html += '
';
}
html += '
';
- html += '
';
if (options.readOnlySyncTarget) {
- html += '
';
+ html += '
';
} else {
+ html += '
';
html += '