comparison gpp/forums/static/js/forums.js @ 483:3ac558402014

For #232, added some javascript to resize pics inside forum posts if they are too big.
author Brian Neal <bgneal@gmail.com>
date Sat, 15 Oct 2011 22:04:18 +0000
parents 84bcaff13129
children
comparison
equal deleted inserted replaced
482:dc4638f37c22 483:3ac558402014
285 } 285 }
286 ++vid; 286 ++vid;
287 } 287 }
288 288
289 initAttachments(); 289 initAttachments();
290
291 $('div.forum-post-body img').fadeIn('fast', function() {
292 var pic = $(this);
293 if (pic.width() > 720) {
294 pic.css('width', '720px');
295 }
296 });
290 }); 297 });