Improved image and thumbnail loading

This commit is contained in:
Marcin Kurczewski
2014-10-05 11:05:34 +02:00
parent 784ff22050
commit b57fee0ad8
15 changed files with 28 additions and 17 deletions

View File

@ -92,10 +92,12 @@ App.Presenters.PostListPresenter = function(
}
_.each(posts, function(post) {
$target.append(jQuery('<li>' + templates.listItem({
var $post = jQuery('<li>' + templates.listItem({
searchArgs: searchArgs,
post: post,
}) + '</li>'));
}) + '</li>')
util.loadImagesNicely($post.find('img'));
$target.append($post);
});
}