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

adjust next/previous link styles

This commit is contained in:
Luke Pulverenti 2013-05-19 14:44:51 -04:00
parent 6a439831cf
commit e50732cb0a
2 changed files with 16 additions and 8 deletions

View file

@ -316,7 +316,7 @@ a.itemTag:hover {
color: #fff!important; color: #fff!important;
font-weight: normal!important; font-weight: normal!important;
display: none; display: none;
background-color: rgba(0,0,0,0.4); background-color: rgba(0,0,0,0.6);
border-radius: 3px; border-radius: 3px;
padding: 3px 5px; padding: 3px 5px;
} }

View file

@ -658,11 +658,19 @@
var name = item.Name; var name = item.Name;
if (item.IndexNumber != null && item.Type !== "Season") { if (item.Type == "Episode" && item.IndexNumber != null && item.ParentIndexNumber != null) {
name = item.IndexNumber + " - " + name;
} var displayIndexNumber = item.IndexNumber < 10 ? "0" + item.IndexNumber : item.IndexNumber;
if (item.ParentIndexNumber != null && item.Type != "Episode") {
name = item.ParentIndexNumber + "." + name; 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); Dashboard.setPageTitle(name);
@ -1798,7 +1806,7 @@
}); });
$.fn.alphaValue = function (val) { $.fn.alphaValue = function (val) {
if (val == null) { if (val == null) {
return $('.selectedCharacter', this).html(); return $('.selectedCharacter', this).html();
} }
@ -1808,7 +1816,7 @@
$('.selectedCharacter', this).removeClass('selectedCharacter'); $('.selectedCharacter', this).removeClass('selectedCharacter');
$('a', this).each(function () { $('a', this).each(function () {
if (this.innerHTML.toLowerCase() == val) { if (this.innerHTML.toLowerCase() == val) {
$(this).addClass('selectedCharacter'); $(this).addClass('selectedCharacter');