FIX: Allow clicking on the (+) icon as well as the link to reply as new

topic.
This commit is contained in:
Robin Ward 2014-05-16 11:25:49 -04:00
parent 4393963d39
commit 417fdeaad8
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
var MAX_SHOWN = 5;
Discourse.PostGutterComponent = Em.Component.extend({
export default Em.Component.extend({
classNameBindings: [':span5', ':gutter'],
// Roll up links to avoid duplicates
@ -68,7 +68,7 @@ Discourse.PostGutterComponent = Em.Component.extend({
if ($target.hasClass('toggle-more')) {
this.toggleProperty('expanded');
return false;
} else if ($target.hasClass('reply-new')) {
} else if ($target.closest('.reply-new').length) {
this.sendAction('newTopicAction', this.get('post'));
return false;
}