summaryrefslogtreecommitdiffstats
path: root/web/js/010-control.js
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2011-05-13 03:54:10 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2011-05-13 03:54:10 -0400
commit7e48878a818bdc2ed59ec32c457a70e93f26298e (patch)
tree8f72b034502b6885fb8d274601165cefc154d58e /web/js/010-control.js
parentUse ajax explicitly. (diff)
downloadPhotoFloat-7e48878a818bdc2ed59ec32c457a70e93f26298e.tar.xz
PhotoFloat-7e48878a818bdc2ed59ec32c457a70e93f26298e.zip
Cache nevertheless quick return.
Diffstat (limited to 'web/js/010-control.js')
-rw-r--r--web/js/010-control.js5
1 files 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();