From 7e48878a818bdc2ed59ec32c457a70e93f26298e Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 13 May 2011 03:54:10 -0400 Subject: [PATCH] Cache nevertheless quick return. --- web/js/010-control.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/js/010-control.js b/web/js/010-control.js index e2cfe39..7fc2b25 100644 --- a/web/js/010-control.js +++ b/web/js/010-control.js @@ -50,11 +50,12 @@ $(document).ready(function() { }); } function albumLoaded(album) { - if (cachePath(album.path) != current_album_cache) + var albumCachePath = cachePath(album.path); + album_cache[albumCachePath] = album; + if (albumCachePath != current_album_cache) return; undie(); $("#loading").hide(); - album_cache[cachePath(album.path)] = album; current_album = album; if (current_photo_cache != null) showPhoto();