nested reply improvements

on new post increase count and add nested reply if replies are expanded
on post purge reduce count and remove nested reply
This commit is contained in:
barisusakli
2016-11-02 15:58:19 +03:00
parent 96d05b58d4
commit eca850c4b1
5 changed files with 65 additions and 30 deletions

View File

@@ -37,6 +37,10 @@ define('forum/topic/posts', [
} else {
onNewPostInfiniteScroll(data);
}
require(['forum/topic/replies'], function (replies) {
replies.onNewPost(data);
});
};
Posts.modifyPostsByPrivileges = function (posts) {