mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Reply as new topic was broken
This commit is contained in:
@@ -64,9 +64,13 @@ Discourse.PostGutterComponent = Em.Component.extend({
|
||||
}.observes('expanded'),
|
||||
|
||||
click: function(e) {
|
||||
if ($(e.target).hasClass('toggle-more')) {
|
||||
var $target = $(e.target);
|
||||
if ($target.hasClass('toggle-more')) {
|
||||
this.toggleProperty('expanded');
|
||||
return false;
|
||||
} else if ($target.hasClass('reply-new')) {
|
||||
this.sendAction('newTopicAction', this.get('post'));
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -92,7 +92,10 @@
|
||||
{{view Discourse.TopicMapContainerView post=this topic=controller.model}}
|
||||
</div>
|
||||
|
||||
{{post-gutter links=internalLinks canReplyAsNewTopic=topic.details.can_reply_as_new_topic}}
|
||||
{{post-gutter post=this
|
||||
links=internalLinks
|
||||
canReplyAsNewTopic=topic.details.can_reply_as_new_topic
|
||||
newTopicAction="replyAsNewTopic"}}
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
Reference in New Issue
Block a user