Prevent composer from accidentally redrawing when reply button is clicked

This commit is contained in:
Toby Zerner 2015-05-23 08:36:00 +09:30
parent e86b796fa4
commit 37fd81c80b

View File

@ -60,7 +60,7 @@ export default function(app) {
if (context instanceof DiscussionPage) {
items.add('reply', !app.session.user() || this.canReply()
? ActionButton.component({ icon: 'reply', label: app.session.user() ? 'Reply' : 'Log In to Reply', onclick: this.replyAction.bind(this, true) })
? ActionButton.component({ icon: 'reply', label: app.session.user() ? 'Reply' : 'Log In to Reply', onclick: this.replyAction.bind(this, true, false) })
: ActionButton.component({ icon: 'reply', label: 'Can\'t Reply', className: 'disabled', title: 'You don\'t have permission to reply to this discussion.' })
);