Mercurial > public > sg101
comparison gpp/comments/static/js/comments.js @ 489:f785a646a5fc
For #232, add some javascript to resize large images in user comments.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 19 Oct 2011 23:31:22 +0000 |
parents | 88b2b9cb8c1f |
children |
comparison
equal
deleted
inserted
replaced
488:a747215e9a5a | 489:f785a646a5fc |
---|---|
61 }); | 61 }); |
62 } | 62 } |
63 } | 63 } |
64 return false; | 64 return false; |
65 }); | 65 }); |
66 | |
67 $('.comment-text img').fadeIn('fast', function() { | |
68 var pic = $(this); | |
69 if (pic.width() > 720) { | |
70 pic.css('width', '720px'); | |
71 } | |
72 }); | |
66 }); | 73 }); |