Resize images to full.

master
Jason A. Donenfeld 2011-05-06 09:02:32 -04:00
parent 727ea6e41d
commit 88a790e0a2
1 changed files with 2 additions and 1 deletions

View File

@ -101,7 +101,8 @@ $(document).ready(function() {
.attr("width", width).attr("height", height)
.attr("src", imagePath(current_photo.name, current_album.path, maxSize, false))
.attr("alt", current_photo.name)
.attr("title", current_photo.name);
.attr("title", current_photo.name)
.load(function() { $(this).css("width", "auto").css("height", "100%"); });
var nextLink = "#" + current_album_cache + "/" + cachePath(current_album.photos[
(current_photo_index + 1 >= current_album.photos.length) ? 0 : (current_photo_index + 1)
].name);