Cache nevertheless quick return.
This commit is contained in:
parent
b979db62d4
commit
7e48878a81
@ -50,11 +50,12 @@ $(document).ready(function() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
function albumLoaded(album) {
|
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;
|
return;
|
||||||
undie();
|
undie();
|
||||||
$("#loading").hide();
|
$("#loading").hide();
|
||||||
album_cache[cachePath(album.path)] = album;
|
|
||||||
current_album = album;
|
current_album = album;
|
||||||
if (current_photo_cache != null)
|
if (current_photo_cache != null)
|
||||||
showPhoto();
|
showPhoto();
|
||||||
|
Loading…
Reference in New Issue
Block a user