mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-03 13:19:51 +01:00
update post count on purge
This commit is contained in:
@@ -109,7 +109,7 @@ define('forum/topic/events', ['forum/topic/browsing', 'forum/topic/postTools', '
|
||||
if (data.tags && data.tags.length !== $('.tags').first().children().length) {
|
||||
templates.parse('partials/post_bar', 'tags', {tags: data.tags}, function(html) {
|
||||
var tags = $('.tags');
|
||||
|
||||
|
||||
tags.fadeOut(250, function() {
|
||||
tags.html(html).fadeIn(250);
|
||||
});
|
||||
@@ -120,6 +120,7 @@ define('forum/topic/events', ['forum/topic/browsing', 'forum/topic/postTools', '
|
||||
function onPostPurged(pid) {
|
||||
$('#post-container li[data-pid="' + pid + '"]').fadeOut(500, function() {
|
||||
$(this).remove();
|
||||
postTools.updatePostCount();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -141,8 +142,6 @@ define('forum/topic/events', ['forum/topic/browsing', 'forum/topic/postTools', '
|
||||
postEl.find('.post-content').html(data.content);
|
||||
}
|
||||
}
|
||||
|
||||
postTools.updatePostCount();
|
||||
}
|
||||
|
||||
function togglePostFavourite(data) {
|
||||
|
||||
Reference in New Issue
Block a user