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:
parent
53cca6425d
commit
1cc27da3eb
2 changed files with 12 additions and 8 deletions
|
@ -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;
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue