Put subalbums on top if more than one.
This commit is contained in:
parent
4609fb54e8
commit
cf44d08610
@ -30,6 +30,7 @@ a:hover {
|
||||
padding: 1em;
|
||||
}
|
||||
#thumbs {
|
||||
clear: both;
|
||||
line-height: 0;
|
||||
}
|
||||
|
||||
|
@ -120,6 +120,11 @@ $(document).ready(function() {
|
||||
subalbumsElement = $("#subalbums");
|
||||
subalbumsElement.empty();
|
||||
subalbumsElement.append.apply(subalbumsElement, subalbums);
|
||||
|
||||
if (currentAlbum.albums.length > 1)
|
||||
subalbumsElement.insertBefore(thumbsElement);
|
||||
else
|
||||
thumbsElement.insertBefore(subalbumsElement);
|
||||
}
|
||||
|
||||
if (currentPhoto === null) {
|
||||
|
Loading…
Reference in New Issue
Block a user