Fix posts block usage in categories page

v1.18.x
Peter Jaszkowiak 7 years ago
parent d9d0f3ffc7
commit cfba8970e1

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

Loading…
Cancel
Save