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

This commit is contained in:
Julian Lam
2016-11-22 10:48:50 -05:00
parent 6f1e5a83ab
commit c987b8474e

View File

@@ -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);
});