mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
closes #3732
This commit is contained in:
@@ -162,6 +162,7 @@ define('forum/topic/events', [
|
|||||||
function onPostPurged(pid) {
|
function onPostPurged(pid) {
|
||||||
components.get('post', 'pid', pid).fadeOut(500, function() {
|
components.get('post', 'pid', pid).fadeOut(500, function() {
|
||||||
$(this).remove();
|
$(this).remove();
|
||||||
|
posts.showBottomPostBar();
|
||||||
});
|
});
|
||||||
|
|
||||||
postTools.updatePostCount();
|
postTools.updatePostCount();
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ define('forum/topic/postTools', ['share', 'navigator', 'components', 'translator
|
|||||||
};
|
};
|
||||||
|
|
||||||
function addVoteHandler() {
|
function addVoteHandler() {
|
||||||
components.get('topic').on('mouseenter', '[data-pid] .votes', function() {
|
components.get('topic').on('mouseenter', '[data-pid] [component="post/vote-count"]', function() {
|
||||||
loadDataAndCreateTooltip($(this));
|
loadDataAndCreateTooltip($(this));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -223,14 +223,12 @@ define('forum/topic/posts', [
|
|||||||
postTools.updatePostCount();
|
postTools.updatePostCount();
|
||||||
addBlockquoteEllipses(posts.find('[component="post/content"] > blockquote > blockquote'));
|
addBlockquoteEllipses(posts.find('[component="post/content"] > blockquote > blockquote'));
|
||||||
hidePostToolsForDeletedPosts(posts);
|
hidePostToolsForDeletedPosts(posts);
|
||||||
showBottomPostBar();
|
Posts.showBottomPostBar();
|
||||||
};
|
};
|
||||||
|
|
||||||
function showBottomPostBar() {
|
Posts.showBottomPostBar = function() {
|
||||||
if (components.get('post').length > 1 || !components.get('post', 'index', 0).length) {
|
$('.bottom-post-bar').toggleClass('hidden', components.get('post').length <= 1 && !!components.get('post', 'index', 0).length);
|
||||||
$('.bottom-post-bar').removeClass('hidden');
|
};
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function hidePostToolsForDeletedPosts(posts) {
|
function hidePostToolsForDeletedPosts(posts) {
|
||||||
posts.each(function() {
|
posts.each(function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user