post/reply component

This commit is contained in:
psychobunny
2015-03-17 14:37:53 -04:00
parent a740e8e98f
commit 1d53365707
3 changed files with 5 additions and 4 deletions

View File

@@ -172,7 +172,7 @@ define('forum/topic/posts', [
if (!privileges.move) {
postEl.find('.move').remove();
}
postEl.find('.reply, .quote').toggleClass('hidden', !$('.post_reply').length);
postEl.find('.reply, .quote').toggleClass('hidden', !$('.post_reply, [component="post/reply"]').length);
var isSelfPost = parseInt(postEl.attr('data-uid'), 10) === parseInt(app.user.uid, 10);
postEl.find('.chat, .flag').toggleClass('hidden', isSelfPost || !app.user.uid);
}