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

add artist links on song page

This commit is contained in:
Luke Pulverenti 2013-04-25 21:52:29 -04:00
parent 70abe25960
commit 69b9c9c379
4 changed files with 22 additions and 6 deletions

View file

@ -29,6 +29,13 @@
$('#itemName', page).html(name);
if (item.AlbumArtist && item.Type == "Audio") {
$('#albumArtist', page).html('<a class="detailPageParentLink" href="itembynamedetails.html?context=music&artist=' + item.AlbumArtist + '">' + item.AlbumArtist + '</a>').show().trigger('create');
}
else {
$('#albumArtist', page).hide();
}
if (item.SeriesName) {
$('#seriesName', page).html('<a class="detailPageParentLink" href="itemdetails.html?id=' + item.SeriesId + '">' + item.SeriesName + '</a>').show().trigger('create');
@ -36,6 +43,10 @@
else if (item.Album && item.Type == "Audio" && item.ParentId) {
$('#seriesName', page).html('<a class="detailPageParentLink" href="itemdetails.html?id=' + item.ParentId + '">' + item.Album + '</a>').show().trigger('create');
}
else if (item.AlbumArtist && item.Type == "MusicAlbum") {
$('#seriesName', page).html('<a class="detailPageParentLink" href="itembynamedetails.html?context=music&artist=' + item.AlbumArtist + '">' + item.AlbumArtist + '</a>').show().trigger('create');
}
else if (item.Album) {
$('#seriesName', page).html(item.Album).show();