From a97206a715f31c83e62acddd8fa67bde6e57ca0d Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 13 May 2011 03:51:24 -0400 Subject: Exit immediately if its an old response. --- web/js/010-control.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'web/js') 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) { -- cgit v1.2.3-59-g8ed1b