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; currentPhoto = photo;
currentPhotoIndex = photoIndex; currentPhotoIndex = photoIndex;
setTitle(); setTitle();
showAlbum(previousAlbum !== currentAlbum);
if (photo !== null) if (photo !== null)
showPhoto(); showPhoto();
showAlbum(previousAlbum !== currentAlbum);
} }
/* Event listeners */ /* Event listeners */