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

only link to the gallery if there are images to show

This commit is contained in:
Luke Pulverenti 2013-06-01 10:40:28 -04:00
parent 53cca6425d
commit 1cc27da3eb
2 changed files with 12 additions and 8 deletions

View file

@ -1289,7 +1289,17 @@
var href = "itemgallery.html?" + identifierName + "=" + identifierValue;
html += "<a href='" + href + "'><img class='itemDetailImage' src='" + url + "' /></a>";
var linkToGallery = LibraryBrowser.shouldDisplayGallery(item);
if (linkToGallery) {
html += "<a href='" + href + "'>";
}
html += "<img class='itemDetailImage' src='" + url + "' />";
if (linkToGallery) {
html += "</a>";
}
return html;
},