aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
diff options
context:
space:
mode:
Diffstat (limited to 'web/js')
-rw-r--r--web/js/010-control.js5
1 files changed, 3 insertions, 2 deletions
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) {