mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 05:55:48 +01:00
fixing new post parsing to not add img-responsive to avatars
This commit is contained in:
@@ -63,7 +63,7 @@ define('forum/categories', ['components', 'translator'], function (components, t
|
|||||||
templates.parse('categories', '(categories.)?posts', {categories: {posts: posts}}, function (html) {
|
templates.parse('categories', '(categories.)?posts', {categories: {posts: posts}}, function (html) {
|
||||||
translator.translate(html, function (translatedHTML) {
|
translator.translate(html, function (translatedHTML) {
|
||||||
translatedHTML = $(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);
|
callback(translatedHTML);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user