From 94988219d32d23c684a1978ba378b09de738a653 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 6 Feb 2015 00:59:55 -0500 Subject: [PATCH] fix detail image links --- dashboard-ui/itembynamedetails.html | 4 ++-- dashboard-ui/scripts/librarybrowser.js | 22 +++++++++++++++------- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/dashboard-ui/itembynamedetails.html b/dashboard-ui/itembynamedetails.html index 9386d9fad2..67befae75c 100644 --- a/dashboard-ui/itembynamedetails.html +++ b/dashboard-ui/itembynamedetails.html @@ -141,7 +141,7 @@
${ButtonSync} - +
@@ -150,7 +150,7 @@
${ButtonSync} - +

diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index 4011981710..07bdea04fc 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -2203,12 +2203,16 @@ url = "css/images/items/detail/video.png"; } - if (!href) { - href = "#"; + html += '
'; + + if (href) { + html += ""; } - html += '
'; html += ""; + if (href) { + html += ""; + } var progressHtml = item.IsFolder ? '' : LibraryBrowser.getItemProgressBarHtml((item.Type == 'Recording' ? item : item.UserData)); @@ -2318,12 +2322,12 @@ shape = 'square'; } - if (!href) { - href = "#"; - } - html += '
'; + if (href) { + html += ""; + } + if (detectRatio && item.PrimaryImageAspectRatio) { if (item.PrimaryImageAspectRatio >= 1.48) { @@ -2335,6 +2339,10 @@ html += ""; + if (href) { + html += ""; + } + var progressHtml = item.IsFolder ? '' : LibraryBrowser.getItemProgressBarHtml((item.Type == 'Recording' ? item : item.UserData)); if (progressHtml) {