Put subalbums on top if more than one.
This commit is contained in:
		@ -30,6 +30,7 @@ a:hover {
 | 
				
			|||||||
	padding: 1em;
 | 
						padding: 1em;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
#thumbs {
 | 
					#thumbs {
 | 
				
			||||||
 | 
						clear: both;
 | 
				
			||||||
	line-height: 0;
 | 
						line-height: 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -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) {
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user