From f473e03f76c6890068963e99b61584990b67d675 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 4 May 2016 12:54:26 +0300 Subject: [PATCH] closes #4565 --- public/src/client/topic/posts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/src/client/topic/posts.js b/public/src/client/topic/posts.js index 605994c9e6..88d80a3872 100644 --- a/public/src/client/topic/posts.js +++ b/public/src/client/topic/posts.js @@ -336,8 +336,9 @@ define('forum/topic/posts', [ Posts.showBottomPostBar = function() { var mainPost = components.get('post', 'index', 0); var posts = $('[component="post"]'); - if (!!mainPost.length && posts.length > 1 && $('.post-bar').length < 2) { + if (!!mainPost.length && posts.length > 1 && $('.post-bar').length < 2 && $('.post-bar-placeholder').length) { $('.post-bar').clone().appendTo(mainPost); + $('.post-bar-placeholder').remove(); } else if (mainPost.length && posts.length < 2) { mainPost.find('.post-bar').remove(); }