update post count on purge

v1.18.x
barisusakli
parent 8471fcbd79
commit b3e83d2f9a

@ -120,6 +120,7 @@ define('forum/topic/events', ['forum/topic/browsing', 'forum/topic/postTools', '
function onPostPurged(pid) { function onPostPurged(pid) {
$('#post-container li[data-pid="' + pid + '"]').fadeOut(500, function() { $('#post-container li[data-pid="' + pid + '"]').fadeOut(500, function() {
$(this).remove(); $(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); postEl.find('.post-content').html(data.content);
} }
} }
postTools.updatePostCount();
} }
function togglePostFavourite(data) { function togglePostFavourite(data) {

Loading…
Cancel
Save