# HG changeset patch # User Brian Neal # Date 1318716258 0 # Node ID 3ac558402014e784088334aa35e692e08b6b84d0 # Parent dc4638f37c22af0f690d17ecbec2c18d5323ccd5 For #232, added some javascript to resize pics inside forum posts if they are too big. diff -r dc4638f37c22 -r 3ac558402014 gpp/forums/static/js/forums.js --- a/gpp/forums/static/js/forums.js Fri Oct 14 02:12:05 2011 +0000 +++ b/gpp/forums/static/js/forums.js Sat Oct 15 22:04:18 2011 +0000 @@ -287,4 +287,11 @@ } initAttachments(); + + $('div.forum-post-body img').fadeIn('fast', function() { + var pic = $(this); + if (pic.width() > 720) { + pic.css('width', '720px'); + } + }); });