diff --git a/dashboard-ui/scripts/Itemdetailpage.js b/dashboard-ui/scripts/Itemdetailpage.js index 0965fc61c6..bff7015f2f 100644 --- a/dashboard-ui/scripts/Itemdetailpage.js +++ b/dashboard-ui/scripts/Itemdetailpage.js @@ -294,8 +294,8 @@ var html = item.Status == 'Ended' ? 'Aired' : 'Airs'; - if (item.AirDays.length) { - html += ' ' + item.AirDays.map(function (a) { + if (item.AirDays && item.AirDays.length) { + html += item.AirDays.length == 7 ? 'daily' : ' ' + item.AirDays.map(function (a) { return a + "s"; }).join(','); @@ -759,6 +759,10 @@ html += '
' + cast.Name + '
'; var role = cast.Role ? "as " + cast.Role : cast.Type; + + if (role == "GuestStar") { + role = "Guest star"; + } html += '' + (role || "") + '
'; diff --git a/dashboard-ui/scripts/gamegenrepage.js b/dashboard-ui/scripts/gamegenrepage.js index 9da9b25e5f..07590b8b7f 100644 --- a/dashboard-ui/scripts/gamegenrepage.js +++ b/dashboard-ui/scripts/gamegenrepage.js @@ -17,6 +17,9 @@ ApiClient.getGenres(Dashboard.getCurrentUserId(), query).done(function (result) { + // Scroll back up so they can see the results from the beginning + $(document).scrollTop(0); + var html = ''; $('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create'); diff --git a/dashboard-ui/scripts/gamestudiospage.js b/dashboard-ui/scripts/gamestudiospage.js index 7ee5c0de9a..076b62ccd7 100644 --- a/dashboard-ui/scripts/gamestudiospage.js +++ b/dashboard-ui/scripts/gamestudiospage.js @@ -17,6 +17,9 @@ ApiClient.getStudios(Dashboard.getCurrentUserId(), query).done(function (result) { + // Scroll back up so they can see the results from the beginning + $(document).scrollTop(0); + var html = ''; $('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create'); diff --git a/dashboard-ui/scripts/itembynamedetailpage.js b/dashboard-ui/scripts/itembynamedetailpage.js index 5f2e6977a8..cac268dfb8 100644 --- a/dashboard-ui/scripts/itembynamedetailpage.js +++ b/dashboard-ui/scripts/itembynamedetailpage.js @@ -386,6 +386,7 @@ addCurrentItemToQuery(query); ApiClient.getItems(Dashboard.getCurrentUserId(), query).done(function (result) { + var html = ''; if (result.TotalRecordCount > query.Limit) { diff --git a/dashboard-ui/scripts/moviegenres.js b/dashboard-ui/scripts/moviegenres.js index 1d0980b247..46c50739c8 100644 --- a/dashboard-ui/scripts/moviegenres.js +++ b/dashboard-ui/scripts/moviegenres.js @@ -17,6 +17,9 @@ ApiClient.getGenres(Dashboard.getCurrentUserId(), query).done(function (result) { + // Scroll back up so they can see the results from the beginning + $(document).scrollTop(0); + var html = ''; $('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create'); diff --git a/dashboard-ui/scripts/moviepeople.js b/dashboard-ui/scripts/moviepeople.js index ad531109ae..618cae0790 100644 --- a/dashboard-ui/scripts/moviepeople.js +++ b/dashboard-ui/scripts/moviepeople.js @@ -18,6 +18,9 @@ ApiClient.getPeople(Dashboard.getCurrentUserId(), query).done(function (result) { + // Scroll back up so they can see the results from the beginning + $(document).scrollTop(0); + var html = ''; $('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create'); diff --git a/dashboard-ui/scripts/moviestudios.js b/dashboard-ui/scripts/moviestudios.js index ace82fc4e1..7336b4bd3f 100644 --- a/dashboard-ui/scripts/moviestudios.js +++ b/dashboard-ui/scripts/moviestudios.js @@ -17,6 +17,9 @@ ApiClient.getStudios(Dashboard.getCurrentUserId(), query).done(function (result) { + // Scroll back up so they can see the results from the beginning + $(document).scrollTop(0); + var html = ''; $('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create'); diff --git a/dashboard-ui/scripts/musicartists.js b/dashboard-ui/scripts/musicartists.js index aa823f462d..faa771030c 100644 --- a/dashboard-ui/scripts/musicartists.js +++ b/dashboard-ui/scripts/musicartists.js @@ -16,6 +16,9 @@ ApiClient.getArtists(Dashboard.getCurrentUserId(), query).done(function (result) { + // Scroll back up so they can see the results from the beginning + $(document).scrollTop(0); + var html = ''; $('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create'); diff --git a/dashboard-ui/scripts/musicgenres.js b/dashboard-ui/scripts/musicgenres.js index 8e37dbe8ce..2bf906cfbb 100644 --- a/dashboard-ui/scripts/musicgenres.js +++ b/dashboard-ui/scripts/musicgenres.js @@ -17,6 +17,9 @@ ApiClient.getGenres(Dashboard.getCurrentUserId(), query).done(function (result) { + // Scroll back up so they can see the results from the beginning + $(document).scrollTop(0); + var html = ''; $('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create'); diff --git a/dashboard-ui/scripts/search.js b/dashboard-ui/scripts/search.js index 17de84d324..8cfd3f8ebb 100644 --- a/dashboard-ui/scripts/search.js +++ b/dashboard-ui/scripts/search.js @@ -155,6 +155,21 @@ html += '