mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 09:25:45 +01:00
Fix posts block usage in categories page
This commit is contained in:
@@ -58,7 +58,7 @@ define('forum/categories', ['components', 'translator', 'benchpress'], function
|
||||
}
|
||||
|
||||
function parseAndTranslate(posts, callback) {
|
||||
Benchpress.parse('categories', '(categories\\.)?posts', { categories: { posts: posts } }, function (html) {
|
||||
Benchpress.parse('partials/categories/lastpost', 'posts', { posts: posts }, function (html) {
|
||||
translator.translate(html, function (translatedHTML) {
|
||||
translatedHTML = $(translatedHTML);
|
||||
translatedHTML.find('.post-content img:not(.not-responsive)').addClass('img-responsive');
|
||||
|
||||
Reference in New Issue
Block a user