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

fix detail image links

This commit is contained in:
Luke Pulverenti 2015-02-06 00:59:55 -05:00
parent 622daeb572
commit 94988219d3
2 changed files with 17 additions and 9 deletions

View file

@ -2203,12 +2203,16 @@
url = "css/images/items/detail/video.png";
}
if (!href) {
href = "#";
html += '<div style="position:relative;">';
if (href) {
html += "<a class='itemDetailGalleryLink' href='" + href + "'>";
}
html += '<div style="position:relative;">';
html += "<img class='itemDetailImage' src='" + url + "' />";
if (href) {
html += "</a>";
}
var progressHtml = item.IsFolder ? '' : LibraryBrowser.getItemProgressBarHtml((item.Type == 'Recording' ? item : item.UserData));
@ -2318,12 +2322,12 @@
shape = 'square';
}
if (!href) {
href = "#";
}
html += '<div style="position:relative;">';
if (href) {
html += "<a class='itemDetailGalleryLink' href='" + href + "'>";
}
if (detectRatio && item.PrimaryImageAspectRatio) {
if (item.PrimaryImageAspectRatio >= 1.48) {
@ -2335,6 +2339,10 @@
html += "<img class='itemDetailImage' src='" + url + "' />";
if (href) {
html += "</a>";
}
var progressHtml = item.IsFolder ? '' : LibraryBrowser.getItemProgressBarHtml((item.Type == 'Recording' ? item : item.UserData));
if (progressHtml) {