Mercurial > public > sg101
diff forums/static/js/forums.js @ 645:99f7917702ca
Fix 081a88b3bfc8, javascript resize of forum images.
Commit 081a88b3bfc8 broke those pages that loaded forums.js but did not load
the imagesLoaded jQuery extension. Now we have arranged it so that only the
forums topic view loads imagesLoaded and put the resizing javascript inline.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 11 Mar 2013 15:30:25 -0500 |
parents | 081a88b3bfc8 |
children | 92101013d5ac |
line wrap: on
line diff
--- a/forums/static/js/forums.js Sun Mar 10 13:09:00 2013 -0500 +++ b/forums/static/js/forums.js Mon Mar 11 15:30:25 2013 -0500 @@ -287,14 +287,4 @@ } initAttachments(); - - $('div.forum-post-body img').imagesLoaded(function($images, $proper, $broken) { - $proper.each(function(index) { - var $pic = $(this); - if ($pic.width() > 660) { - $pic.css('width', '660px'); - $pic.wrap($('<a/>').attr('href', $pic.attr('src')).attr('title', 'Click to view full size')); - } - }); - }); });