Exit immediately if its an old response.
This commit is contained in:
parent
567f38e88b
commit
a97206a715
@ -49,13 +49,14 @@ $(document).ready(function() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
function albumLoaded(album) {
|
function albumLoaded(album) {
|
||||||
|
if (cachePath(album.path) != current_album_cache)
|
||||||
|
return;
|
||||||
undie();
|
undie();
|
||||||
$("#loading").hide();
|
$("#loading").hide();
|
||||||
album_cache[cachePath(album.path)] = album;
|
album_cache[cachePath(album.path)] = album;
|
||||||
current_album = album;
|
current_album = album;
|
||||||
if (current_photo_cache != null)
|
if (current_photo_cache != null)
|
||||||
showPhoto();
|
showPhoto();
|
||||||
if (cachePath(album.path) == current_album_cache)
|
|
||||||
showAlbum(true);
|
showAlbum(true);
|
||||||
setTitle();
|
setTitle();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user