aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2011-05-13 03:51:24 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2011-05-13 03:51:24 -0400
commita97206a715f31c83e62acddd8fa67bde6e57ca0d (patch)
tree5b96e5023300cee8e09cabd8dd7863944be7b238 /web/js
parentFix unicode error for Espen. (diff)
downloadPhotoFloat-a97206a715f31c83e62acddd8fa67bde6e57ca0d.tar.xz
PhotoFloat-a97206a715f31c83e62acddd8fa67bde6e57ca0d.zip
Exit immediately if its an old response.
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) {