aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2011-05-06 09:02:32 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2011-05-06 09:02:32 -0400
commit88a790e0a270c5a1d091f6d297063aa2d72956da (patch)
tree1e73372dcf420e75f83bf93ec0670347bb1ae3f4 /web
parentBigger images. (diff)
downloadPhotoFloat-88a790e0a270c5a1d091f6d297063aa2d72956da.tar.xz
PhotoFloat-88a790e0a270c5a1d091f6d297063aa2d72956da.zip
Resize images to full.
Diffstat (limited to 'web')
-rw-r--r--web/js/010-control.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/js/010-control.js b/web/js/010-control.js
index 9bd8b6d..a55596e 100644
--- a/web/js/010-control.js
+++ b/web/js/010-control.js
@@ -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);