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:
parent
1e450d45a2
commit
1c9f49e4f3
2 changed files with 17 additions and 11 deletions
|
@ -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: ' + '<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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue