|
|
|
@ -9,7 +9,7 @@ define('forum/account/posts', ['forum/account/header', 'forum/infinitescroll'],
|
|
|
|
|
AccountPosts.init = function() {
|
|
|
|
|
header.init();
|
|
|
|
|
|
|
|
|
|
$('[component="post/content"] img').addClass('img-responsive');
|
|
|
|
|
$('[component="post/content"] img:not(.not-responsive)').addClass('img-responsive');
|
|
|
|
|
|
|
|
|
|
AccountPosts.handleInfiniteScroll('posts.loadMoreUserPosts', 'account/posts');
|
|
|
|
|
};
|
|
|
|
@ -43,7 +43,7 @@ define('forum/account/posts', ['forum/account/header', 'forum/infinitescroll'],
|
|
|
|
|
function onPostsLoaded(posts, callback) {
|
|
|
|
|
infinitescroll.parseAndTranslate(template, 'posts', {posts: posts}, function(html) {
|
|
|
|
|
$('[component="posts"]').append(html);
|
|
|
|
|
html.find('img').addClass('img-responsive');
|
|
|
|
|
html.find('img:not(.not-responsive)').addClass('img-responsive');
|
|
|
|
|
html.find('.timeago').timeago();
|
|
|
|
|
app.createUserTooltips();
|
|
|
|
|
utils.makeNumbersHumanReadable(html.find('.human-readable-number'));
|
|
|
|
|