Put subalbums on top if more than one.

master
Jason A. Donenfeld 2011-06-24 03:02:50 -04:00
parent 4609fb54e8
commit cf44d08610
2 changed files with 6 additions and 0 deletions

View File

@ -30,6 +30,7 @@ a:hover {
padding: 1em; padding: 1em;
} }
#thumbs { #thumbs {
clear: both;
line-height: 0; line-height: 0;
} }

View File

@ -120,6 +120,11 @@ $(document).ready(function() {
subalbumsElement = $("#subalbums"); subalbumsElement = $("#subalbums");
subalbumsElement.empty(); subalbumsElement.empty();
subalbumsElement.append.apply(subalbumsElement, subalbums); subalbumsElement.append.apply(subalbumsElement, subalbums);
if (currentAlbum.albums.length > 1)
subalbumsElement.insertBefore(thumbsElement);
else
thumbsElement.insertBefore(subalbumsElement);
} }
if (currentPhoto === null) { if (currentPhoto === null) {