diff --git a/dashboard-ui/itemdetails.html b/dashboard-ui/itemdetails.html
index 009c3d00b3..5c46b8b1ed 100644
--- a/dashboard-ui/itemdetails.html
+++ b/dashboard-ui/itemdetails.html
@@ -126,6 +126,7 @@
+
diff --git a/dashboard-ui/scripts/Itemdetailpage.js b/dashboard-ui/scripts/Itemdetailpage.js
index f3bbc958a7..3bfe2b3fcc 100644
--- a/dashboard-ui/scripts/Itemdetailpage.js
+++ b/dashboard-ui/scripts/Itemdetailpage.js
@@ -230,6 +230,35 @@
} else {
$('#detailSection', page).show();
}
+
+ renderSeriesAirTime(page, item, context);
+ }
+
+ function renderSeriesAirTime(page, item, context) {
+
+ if (item.Type != "Series") {
+ $('#seriesAirTime', page).hide();
+ return;
+ }
+
+ var html = item.Status == 'Ended' ? 'Aired' : 'Airs';
+
+ if (item.AirDays.length) {
+ html += ' ' + item.AirDays.map(function(a) {
+ return a + "s";
+
+ }).join(',');
+ }
+
+ if (item.Studios.length) {
+ html += ' on
' + item.Studios[0].Name + '';
+ }
+
+ if (item.AirTime) {
+ html += ' at ' + item.AirTime;
+ }
+
+ $('#seriesAirTime', page).show().html(html).trigger('create');
}
function renderTags(page, item) {
@@ -253,10 +282,12 @@
function renderChildren(page, item) {
+ var sortBy = item.Type == "Boxset" ? "ProductionYear,SortName" : "SortName";
+
ApiClient.getItems(Dashboard.getCurrentUserId(), {
ParentId: getParameterByName('id'),
- SortBy: "SortName",
+ SortBy: sortBy,
Fields: "PrimaryImageAspectRatio,ItemCounts,DisplayMediaType,DateCreated,UserData,AudioInfo"
}).done(function (result) {