Skip to content

Node.js based forum software built for the modern web

migrating home page to new partials #2230

psychobunnyb7bba928a463
diff --git a/public/src/client/home.js b/public/src/client/home.js
index ae52d240c0..013c351176 100644
--- a/public/src/client/home.js
+++ b/public/src/client/home.js
@@ -61,9 +61,7 @@ define('forum/home', function() {
}
function parseAndTranslate(posts, callback) {
- ajaxify.loadTemplate('home', function(homeTemplate) {
- var html = templates.parse(templates.getBlock(homeTemplate, 'posts'), {categories: {posts: posts}});
-
+ templates.parse('home', 'posts', {categories: {posts: posts}}, function(html) {
translator.translate(html, function(translatedHTML) {
translatedHTML = $(translatedHTML);
translatedHTML.find('img').addClass('img-responsive');