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

add photo album

This commit is contained in:
Luke Pulverenti 2014-08-29 00:06:30 -04:00
parent b74ed62a1c
commit bfafc4aa2b
3 changed files with 23 additions and 21 deletions

View file

@ -525,14 +525,14 @@ a.itemTag:hover {
margin-top: 0; margin-top: 0;
} }
.detailPageCollabsible .ui-collapsible-heading a { .detailPageCollabsible .ui-collapsible-heading a {
background-color: #141414 !important; background-color: #141414 !important;
font-size: 16px; font-size: 16px;
font-weight: 400 !important; font-weight: 400 !important;
border-radius: 4px; border-radius: 4px;
padding-top: .75em; padding-top: .75em;
padding-bottom: .75em; padding-bottom: .75em;
} }
.detailSectionHeader { .detailSectionHeader {
background-clip: border-box; background-clip: border-box;

View file

@ -216,12 +216,12 @@
</div> </div>
</div> </div>
<div class="detailSection detailCollapsibleSection photoInfo hide"> <div class="detailSection photoInfo hide">
<div data-role="collapsible" class="detailPageCollabsible" data-content-theme="false" data-collapsed="false"> <div class="detailSectionHeader">
<h2>${HeaderPhotoInfo}</h2> ${HeaderPhotoInfo}
<div> </div>
<div class="photoInfoContent"></div> <div class="detailSectionContent" style="padding:1em;">
</div> <div class="photoInfoContent"></div>
</div> </div>
</div> </div>

View file

@ -507,7 +507,7 @@
$('.lnkSibling', page).addClass('hide'); $('.lnkSibling', page).addClass('hide');
if ((item.Type != "Episode" && item.Type != "Season" && item.Type != "Audio") || item.IndexNumber == null) { if ((item.Type != "Episode" && item.Type != "Season" && item.Type != "Audio" && item.Type != "Photo")) {
return; return;
} }
@ -534,7 +534,8 @@
} else { } else {
promise = ApiClient.getItems(Dashboard.getCurrentUserId(), { promise = ApiClient.getItems(Dashboard.getCurrentUserId(), {
AdjacentTo: item.Id, AdjacentTo: item.Id,
ParentId: item.ParentId ParentId: item.ParentId,
SortBy: 'SortName'
}); });
} }
@ -542,19 +543,20 @@
promise.done(function (result) { promise.done(function (result) {
var foundExisting = false;
for (var i = 0, length = result.Items.length; i < length; i++) { for (var i = 0, length = result.Items.length; i < length; i++) {
var curr = result.Items[i]; var curr = result.Items[i];
if (curr.IndexNumber == null) { if (curr.Id == item.Id) {
continue; foundExisting = true;
} }
else if (!foundExisting) {
if (curr.IndexNumber < item.IndexNumber) {
$('.lnkPreviousItem', page).removeClass('hide').attr('href', 'itemdetails.html?id=' + curr.Id + '&context=' + context); $('.lnkPreviousItem', page).removeClass('hide').attr('href', 'itemdetails.html?id=' + curr.Id + '&context=' + context);
} }
else if (curr.IndexNumber > item.IndexNumber) { else {
$('.lnkNextItem', page).removeClass('hide').attr('href', 'itemdetails.html?id=' + curr.Id + '&context=' + context); $('.lnkNextItem', page).removeClass('hide').attr('href', 'itemdetails.html?id=' + curr.Id + '&context=' + context);
} }