From b3e83d2f9a5dd254ce20bfac1791782e31fbc481 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Tue, 14 Oct 2014 23:41:58 -0400 Subject: [PATCH] update post count on purge --- public/src/client/topic/events.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/public/src/client/topic/events.js b/public/src/client/topic/events.js index 9b9093c09b..75da62dfb9 100644 --- a/public/src/client/topic/events.js +++ b/public/src/client/topic/events.js @@ -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) {