" + current_album.albums[i].path + "
";
- thumbFinderList.push({ path: path, id: escapeId(id) });
- }
- $("#subalbums").html(subalbums);
- for (var i = 0; i < thumbFinderList.length; ++i)
- (function(thumb) {
- albumThumbFinder(thumb.path, function(photo, album) {
- $("#" + thumb.id).css("background-image", "url(" + imagePath(photo.name, album.path, 150, true) + ")");
- });
- })(thumbFinderList[i]);
+ function showAlbum(populate) {
+ if (current_photo_cache == null && previous_photo_cache == null)
+ $("html, body").stop().animate({ scrollTop: 0 }, "slow");
- $("#album-view").removeClass("photo-view-container");
- $("#subalbums").show();
- $("#photo-view").hide();
+ if (populate) {
+ var photos = "";
+ for (var i = 0; i < current_album.photos.length; ++i)
+ photos += "