Exit immediately if its an old response.

This commit is contained in:
Jason A. Donenfeld 2011-05-13 03:51:24 -04:00
parent 567f38e88b
commit a97206a715

View File

@ -49,13 +49,14 @@ $(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);
setTitle();
}