diff --git a/web/js/010-control.js b/web/js/010-control.js index 8a6ed2b..76c7d54 100644 --- a/web/js/010-control.js +++ b/web/js/010-control.js @@ -49,14 +49,15 @@ $(document).ready(function() { }); } function albumLoaded(album) { + if (cachePath(album.path) != current_album_cache) + return; undie(); $("#loading").hide(); album_cache[cachePath(album.path)] = album; current_album = album; if (current_photo_cache != null) showPhoto(); - if (cachePath(album.path) == current_album_cache) - showAlbum(true); + showAlbum(true); setTitle(); } function trimExtension(title) {