diff --git a/dashboard-ui/scripts/itembynamedetailpage.js b/dashboard-ui/scripts/itembynamedetailpage.js
index 673a1ab419..fabd83b9e8 100644
--- a/dashboard-ui/scripts/itembynamedetailpage.js
+++ b/dashboard-ui/scripts/itembynamedetailpage.js
@@ -179,49 +179,49 @@
if (result.MovieCount) {
- html += '';
+ html += '';
html += '';
}
if (result.SeriesCount) {
- html += '';
+ html += '';
html += '';
}
if (result.EpisodeCount) {
- html += '';
+ html += '';
html += '';
}
if (result.TrailerCount) {
- html += '';
+ html += '';
html += '';
}
if (result.GameCount) {
- html += '';
+ html += '';
html += '';
}
if (result.AlbumCount) {
- html += '';
+ html += '';
html += '';
}
if (result.SongCount) {
- html += '';
+ html += '';
html += '';
}
if (result.MusicVideoCount) {
- html += '';
+ html += '';
html += '';
}
@@ -231,7 +231,19 @@
bindRadioEvents(page);
- $('input:first', elem).attr("checked", "checked").checkboxradio("refresh").trigger('click');
+ var context = getParameterByName('context');
+ var selectedRadio = null;
+
+ if (context) {
+ selectedRadio = $('.context-' + context + ':first', elem);
+ }
+
+ if (selectedRadio && selectedRadio.length) {
+ selectedRadio.attr("checked", "checked").checkboxradio("refresh").trigger('click');
+ } else {
+ $('input:first', elem).attr("checked", "checked").checkboxradio("refresh").trigger('click');
+ }
+
});
}