Skip to content

Node.js based forum software built for the modern web

move out update, should work even if post isnt in dom

barisusaklif318f2f815fb
diff --git a/public/src/client/topic/events.js b/public/src/client/topic/events.js
index 75da62dfb9..29e2309ce9 100644
--- a/public/src/client/topic/events.js
+++ b/public/src/client/topic/events.js
@@ -120,8 +120,8 @@ 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();
});
+ postTools.updatePostCount();
}
function togglePostDeleteState(data) {