diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2011-05-13 03:51:24 -0400 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2011-05-13 03:51:24 -0400 |
commit | a97206a715f31c83e62acddd8fa67bde6e57ca0d (patch) | |
tree | 5b96e5023300cee8e09cabd8dd7863944be7b238 /web | |
parent | Fix unicode error for Espen. (diff) | |
download | PhotoFloat-a97206a715f31c83e62acddd8fa67bde6e57ca0d.tar.xz PhotoFloat-a97206a715f31c83e62acddd8fa67bde6e57ca0d.zip |
Exit immediately if its an old response.
Diffstat (limited to 'web')
-rw-r--r-- | web/js/010-control.js | 5 |
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) { |