fixing new post parsing to not add img-responsive to avatars

v1.18.x
Julian Lam 8 years ago
parent 6f1e5a83ab
commit c987b8474e

@ -63,7 +63,7 @@ define('forum/categories', ['components', 'translator'], function (components, t
templates.parse('categories', '(categories.)?posts', {categories: {posts: posts}}, function (html) {
translator.translate(html, function (translatedHTML) {
translatedHTML = $(translatedHTML);
translatedHTML.find('img:not(.not-responsive)').addClass('img-responsive');
translatedHTML.find('.post-content img:not(.not-responsive)').addClass('img-responsive');
callback(translatedHTML);
});

Loading…
Cancel
Save