Show image before album. Loads image faster when using direct image URL.

This commit is contained in:
Joachim Tingvold 2014-03-16 15:02:03 +01:00
parent ba69da0fde
commit 20fe79eb4e

View File

@ -257,9 +257,9 @@ $(document).ready(function() {
currentPhoto = photo;
currentPhotoIndex = photoIndex;
setTitle();
showAlbum(previousAlbum !== currentAlbum);
if (photo !== null)
showPhoto();
showAlbum(previousAlbum !== currentAlbum);
}
/* Event listeners */