fix wrong post count on new post

This commit is contained in:
barisusakli
2015-03-27 13:19:12 -04:00
parent a78eebe8be
commit 474b074c8f

View File

@@ -22,8 +22,8 @@ define('forum/topic/posts', [
}
for (var i=0; i<data.posts.length; ++i) {
var postcount = components.get('user/postcount', data.posts[i].uid);
postcount.html(parseInt(postcount.html(), 10) + 1);
var postcount = components.get('user/postcount', data.posts[i].uid).attr('data-postcount');
postcount.html(parseInt(postcount, 10) + 1);
}
createNewPosts(data, components.get('post').not('[data-index=0]'), function(html) {