mirror of
https://github.com/discourse/discourse.git
synced 2025-02-17 00:35:50 +00:00
FIX: Allow clicking on the (+) icon as well as the link to reply as new
topic.
This commit is contained in:
parent
4393963d39
commit
417fdeaad8
@ -1,6 +1,6 @@
|
|||||||
var MAX_SHOWN = 5;
|
var MAX_SHOWN = 5;
|
||||||
|
|
||||||
Discourse.PostGutterComponent = Em.Component.extend({
|
export default Em.Component.extend({
|
||||||
classNameBindings: [':span5', ':gutter'],
|
classNameBindings: [':span5', ':gutter'],
|
||||||
|
|
||||||
// Roll up links to avoid duplicates
|
// Roll up links to avoid duplicates
|
||||||
@ -68,7 +68,7 @@ Discourse.PostGutterComponent = Em.Component.extend({
|
|||||||
if ($target.hasClass('toggle-more')) {
|
if ($target.hasClass('toggle-more')) {
|
||||||
this.toggleProperty('expanded');
|
this.toggleProperty('expanded');
|
||||||
return false;
|
return false;
|
||||||
} else if ($target.hasClass('reply-new')) {
|
} else if ($target.closest('.reply-new').length) {
|
||||||
this.sendAction('newTopicAction', this.get('post'));
|
this.sendAction('newTopicAction', this.get('post'));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user