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

@ -77,10 +77,12 @@ App.Presenters.UserListPresenter = function(
}
_.each(users, function(user) {
$target.append(jQuery('<li>' + templates.listItem({
var $item = jQuery('<li>' + templates.listItem({
user: user,
formatRelativeTime: util.formatRelativeTime,
}) + '</li>'));
}) + '</li>');
util.loadImagesNicely($item.find('img'));
$target.append($item);
});
}