diff --git a/dashboard-ui/css/librarybrowser.css b/dashboard-ui/css/librarybrowser.css index 47fa7ed1bd..5bb5c37148 100644 --- a/dashboard-ui/css/librarybrowser.css +++ b/dashboard-ui/css/librarybrowser.css @@ -316,7 +316,7 @@ a.itemTag:hover { color: #fff!important; font-weight: normal!important; display: none; - background-color: rgba(0,0,0,0.4); + background-color: rgba(0,0,0,0.6); border-radius: 3px; padding: 3px 5px; } diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index 6082a6107b..5611dcb6a0 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -658,11 +658,19 @@ var name = item.Name; - if (item.IndexNumber != null && item.Type !== "Season") { - name = item.IndexNumber + " - " + name; - } - if (item.ParentIndexNumber != null && item.Type != "Episode") { - name = item.ParentIndexNumber + "." + name; + if (item.Type == "Episode" && item.IndexNumber != null && item.ParentIndexNumber != null) { + + var displayIndexNumber = item.IndexNumber < 10 ? "0" + item.IndexNumber : item.IndexNumber; + + name = item.ParentIndexNumber + "x" + displayIndexNumber + " - " + name; + + } else { + if (item.IndexNumber != null && item.Type !== "Season") { + name = item.IndexNumber + " - " + name; + } + if (item.ParentIndexNumber != null && item.Type != "Episode") { + name = item.ParentIndexNumber + "." + name; + } } Dashboard.setPageTitle(name); @@ -1798,7 +1806,7 @@ }); $.fn.alphaValue = function (val) { - + if (val == null) { return $('.selectedCharacter', this).html(); } @@ -1808,7 +1816,7 @@ $('.selectedCharacter', this).removeClass('selectedCharacter'); $('a', this).each(function () { - + if (this.innerHTML.toLowerCase() == val) { $(this).addClass('selectedCharacter');