1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

display path on detail page

This commit is contained in:
Luke Pulverenti 2013-05-28 16:01:33 -04:00
parent 1e450d45a2
commit 1c9f49e4f3
2 changed files with 17 additions and 11 deletions

View file

@ -222,16 +222,6 @@
renderSeriesAirTime(page, item, context);
var detailsSection = $('#detailsSection', page);
var elem = $('.detailSectionContent', detailsSection)[0];
var text = elem.textContent || elem.innerText;
if (!text.trim()) {
detailsSection.addClass('hide');
} else {
detailsSection.removeClass('hide');
}
if (item.Players) {
$('#players', page).show().html(item.Players + ' Player');
} else {
@ -244,6 +234,21 @@
$('#artist', page).hide();
}
var detailsSection = $('#detailsSection', page);
var elem = $('.detailSectionContent', detailsSection)[0];
var text = elem.textContent || elem.innerText;
if (!text.trim()) {
detailsSection.addClass('hide');
} else {
detailsSection.removeClass('hide');
}
if (item.Path) {
$('.itemPath', page).show().html('Path:&nbsp;&nbsp;' + '<span style="font-size:13px;">' + item.Path + '</span>');
} else {
$('.itemPath', page).hide();
}
}
function renderSiblingLinks(page, item) {
@ -291,7 +296,7 @@
userId: Dashboard.getCurrentUserId(),
limit: item.Type == "MusicAlbum" ? 6 : 8
};
if (item.Type == "Movie") {
promise = ApiClient.getSimilarMovies(item.Id, options);
}