# HG changeset patch # User Brian Neal # Date 1319067082 0 # Node ID f785a646a5fcb7ca78b72b00a750a96dc37e5a20 # Parent a747215e9a5a4380608b6ff752969591bc702b4f For #232, add some javascript to resize large images in user comments. diff -r a747215e9a5a -r f785a646a5fc gpp/comments/static/js/comments.js --- a/gpp/comments/static/js/comments.js Wed Oct 19 01:24:46 2011 +0000 +++ b/gpp/comments/static/js/comments.js Wed Oct 19 23:31:22 2011 +0000 @@ -63,4 +63,11 @@ } return false; }); + + $('.comment-text img').fadeIn('fast', function() { + var pic = $(this); + if (pic.width() > 720) { + pic.css('width', '720px'); + } + }); });