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

@ -141,7 +141,7 @@
<div class="detailButtonsContainer desktopDetailButtons" style="text-align: left;">
<button class="btnPlay hide" type="button" data-icon="play" data-inline="true" data-mini="true">${ButtonPlay}</button>
<a class="btnSync hide" data-role="button" data-icon="cloud" data-inline="true" data-mini="true" href="#">${ButtonSync}</a>
<button class="btnMoreCommands hide" type="button" data-icon="ellipsis-v" data-inline="true" data-mini="true">${ButtonMore}</button>
<button class="btnMoreCommands hide jqmButtonNoText" type="button" data-icon="ellipsis-v" data-inline="true" data-mini="true" data-iconpos="notext">${ButtonMore}</button>
</div>
</td>
</tr>
@ -150,7 +150,7 @@
<div class="detailButtonsContainer mobileDetailButtons">
<button class="btnPlay hide" type="button" data-icon="play" data-inline="true" data-mini="true">${ButtonPlay}</button>
<a class="btnSync hide" data-role="button" data-icon="cloud" data-inline="true" data-mini="true" href="#">${ButtonSync}</a>
<button class="btnMoreCommands hide" type="button" data-icon="ellipsis-v" data-inline="true" data-mini="true">${ButtonMore}</button>
<button class="btnMoreCommands hide jqmButtonNoText" type="button" data-icon="ellipsis-v" data-inline="true" data-mini="true" data-iconpos="notext">${ButtonMore}</button>
</div>
<p class="itemOverview mobileOverview"></p>
<div data-role="content" style="padding-top: 0;">

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) {