Exit immediately if its an old response.

master
Jason A. Donenfeld 2011-05-13 03:51:24 -04:00
parent 567f38e88b
commit a97206a715
1 changed files with 3 additions and 2 deletions

View File

@ -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) {