+
diff --git a/dashboard-ui/scripts/episodes.js b/dashboard-ui/scripts/episodes.js
index 3bd4d7a4df..29bc6a535b 100644
--- a/dashboard-ui/scripts/episodes.js
+++ b/dashboard-ui/scripts/episodes.js
@@ -87,7 +87,8 @@
showParentTitle: true,
overlayText: true,
lazy: true,
- showDetailsMenu: true
+ showDetailsMenu: true,
+ overlayPlayButton: true
});
}
else if (view == "PosterCard") {
diff --git a/dashboard-ui/scripts/favorites.js b/dashboard-ui/scripts/favorites.js
index 422675cab0..f790b4a7a6 100644
--- a/dashboard-ui/scripts/favorites.js
+++ b/dashboard-ui/scripts/favorites.js
@@ -19,9 +19,9 @@
function getSections() {
return [
- { name: 'HeaderFavoriteMovies', types: "Movie", id: "favoriteMovies", shape: getPosterShape(), showTitle: false },
- { name: 'HeaderFavoriteShows', types: "Series", id: "favoriteShows", shape: getPosterShape(), showTitle: false },
- { name: 'HeaderFavoriteEpisodes', types: "Episode", id: "favoriteEpisode", shape: getThumbShape(), preferThumb: false, showTitle: true, showParentTitle: true },
+ { name: 'HeaderFavoriteMovies', types: "Movie", id: "favoriteMovies", shape: getPosterShape(), showTitle: false, overlayPlayButton: true },
+ { name: 'HeaderFavoriteShows', types: "Series", id: "favoriteShows", shape: getPosterShape(), showTitle: false, overlayPlayButton: true },
+ { name: 'HeaderFavoriteEpisodes', types: "Episode", id: "favoriteEpisode", shape: getThumbShape(), preferThumb: false, showTitle: true, showParentTitle: true, overlayPlayButton: true },
{ name: 'HeaderFavoriteGames', types: "Game", id: "favoriteGames", shape: getSquareShape(), preferThumb: false, showTitle: true },
{ name: 'HeaderFavoriteArtists', types: "MusicArtist", id: "favoriteArtists", shape: getSquareShape(), preferThumb: false, showTitle: true, overlayText: false, showParentTitle: true, centerText: true, overlayPlayButton: true },
{ name: 'HeaderFavoriteAlbums', types: "MusicAlbum", id: "favoriteAlbums", shape: getSquareShape(), preferThumb: false, showTitle: true, overlayText: false, showParentTitle: true, centerText: true, overlayPlayButton: true },
diff --git a/dashboard-ui/scripts/itemdetailpage.js b/dashboard-ui/scripts/itemdetailpage.js
index 53e064730a..309b64e500 100644
--- a/dashboard-ui/scripts/itemdetailpage.js
+++ b/dashboard-ui/scripts/itemdetailpage.js
@@ -903,7 +903,8 @@
shape: getPortraitShape(),
showTitle: true,
centerText: true,
- lazy: true
+ lazy: true,
+ overlayPlayButton: true
});
}
else if (item.Type == "Season") {
@@ -916,7 +917,7 @@
overlayText: true,
lazy: true,
showDetailsMenu: true,
- overlayMoreButton: AppInfo.enableAppLayouts
+ overlayPlayButton: AppInfo.enableAppLayouts
});
}
else if (item.Type == "GameSystem") {
diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js
index 8c4362e864..4ccaa91a25 100644
--- a/dashboard-ui/scripts/librarybrowser.js
+++ b/dashboard-ui/scripts/librarybrowser.js
@@ -669,6 +669,7 @@
if (!resumePositionTicks && mediaType != "Audio" && !isFolder) {
if (!externalPlayers || mediaType != "Video") {
+
MediaController.play(itemId);
return;
}
@@ -1529,6 +1530,10 @@
atts.push('data-context="' + (options.context || '') + '"');
}
+ if (item.IsFolder) {
+ atts.push('data-isfolder="' + item.IsFolder + '"');
+ }
+
atts.push('data-itemtype="' + item.Type + '"');
if (item.MediaType) {
diff --git a/dashboard-ui/scripts/librarylist.js b/dashboard-ui/scripts/librarylist.js
index 4553ccbb88..d2c042bff2 100644
--- a/dashboard-ui/scripts/librarylist.js
+++ b/dashboard-ui/scripts/librarylist.js
@@ -181,11 +181,13 @@
function onPlayItemButtonClick() {
- var id = this.getAttribute('data-itemid');
- var type = this.getAttribute('data-itemtype');
- var isFolder = this.getAttribute('data-isfolder') == 'true';
- var mediaType = this.getAttribute('data-mediatype');
- var resumePosition = parseInt(this.getAttribute('data-resumeposition'));
+ var target = this;
+
+ var id = target.getAttribute('data-itemid');
+ var type = target.getAttribute('data-itemtype');
+ var isFolder = target.getAttribute('data-isfolder') == 'true';
+ var mediaType = target.getAttribute('data-mediatype');
+ var resumePosition = parseInt(target.getAttribute('data-resumeposition'));
LibraryBrowser.showPlayMenu(this, id, type, isFolder, mediaType, resumePosition);
diff --git a/dashboard-ui/scripts/moviecollections.js b/dashboard-ui/scripts/moviecollections.js
index 6cb102ef8e..3c7ef7aefc 100644
--- a/dashboard-ui/scripts/moviecollections.js
+++ b/dashboard-ui/scripts/moviecollections.js
@@ -88,7 +88,8 @@
context: context,
showTitle: true,
centerText: true,
- lazy: true
+ lazy: true,
+ overlayPlayButton: true
});
}
else if (view == "PosterCard") {
@@ -110,7 +111,8 @@
showTitle: true,
centerText: true,
lazy: true,
- preferThumb: true
+ preferThumb: true,
+ overlayPlayButton: true
});
}
else if (view == "ThumbCard") {
diff --git a/dashboard-ui/scripts/moviegenres.js b/dashboard-ui/scripts/moviegenres.js
index 91ef9c93ae..33977975d7 100644
--- a/dashboard-ui/scripts/moviegenres.js
+++ b/dashboard-ui/scripts/moviegenres.js
@@ -75,7 +75,8 @@
context: 'movies',
showItemCounts: true,
centerText: true,
- lazy: true
+ lazy: true,
+ overlayPlayButton: true
});
}
else if (view == "ThumbCard") {
@@ -109,7 +110,8 @@
context: 'movies',
centerText: true,
showItemCounts: true,
- lazy: true
+ lazy: true,
+ overlayPlayButton: true
});
}
diff --git a/dashboard-ui/scripts/movies.js b/dashboard-ui/scripts/movies.js
index 7d82aff9ef..77db19f1df 100644
--- a/dashboard-ui/scripts/movies.js
+++ b/dashboard-ui/scripts/movies.js
@@ -79,7 +79,8 @@
shape: "backdrop",
preferThumb: true,
lazy: true,
- showDetailsMenu: true
+ showDetailsMenu: true,
+ overlayPlayButton: true
});
}
else if (view == "ThumbCard") {
@@ -118,7 +119,8 @@
shape: "portrait",
centerText: true,
lazy: true,
- showDetailsMenu: true
+ showDetailsMenu: true,
+ overlayPlayButton: true
});
}
else if (view == "PosterCard") {
diff --git a/dashboard-ui/scripts/moviesrecommended.js b/dashboard-ui/scripts/moviesrecommended.js
index eafaa483f9..eafe4d6b04 100644
--- a/dashboard-ui/scripts/moviesrecommended.js
+++ b/dashboard-ui/scripts/moviesrecommended.js
@@ -63,7 +63,8 @@
centerText: true,
lazy: true,
overlayText: false,
- showDetailsMenu: true
+ showDetailsMenu: true,
+ overlayPlayButton: true
});
}
@@ -195,7 +196,8 @@
shape: getPortraitShape(),
centerText: true,
lazy: true,
- showDetailsMenu: true
+ showDetailsMenu: true,
+ overlayPlayButton: true
});
}
html += '
';
diff --git a/dashboard-ui/scripts/movietrailers.js b/dashboard-ui/scripts/movietrailers.js
index 81755a1c43..d779000395 100644
--- a/dashboard-ui/scripts/movietrailers.js
+++ b/dashboard-ui/scripts/movietrailers.js
@@ -72,7 +72,8 @@
items: result.Items,
shape: "portrait",
lazy: true,
- showDetailsMenu: true
+ showDetailsMenu: true,
+ overlayPlayButton: true
});
var elem = page.querySelector('.itemsContainer');
diff --git a/dashboard-ui/scripts/sections.js b/dashboard-ui/scripts/sections.js
index 5b1e84063a..1c26cac2c1 100644
--- a/dashboard-ui/scripts/sections.js
+++ b/dashboard-ui/scripts/sections.js
@@ -637,7 +637,8 @@
coverImage: true,
lazy: true,
showDetailsMenu: true,
- centerText: true
+ centerText: true,
+ overlayPlayButton: true
});
html += '