diff --git a/public/language/en_GB/topic.json b/public/language/en_GB/topic.json index dcc651fc24..eb7a39030f 100644 --- a/public/language/en_GB/topic.json +++ b/public/language/en_GB/topic.json @@ -16,6 +16,7 @@ "notify_me": "Be notified of new replies in this topic", "quote": "Quote", "reply": "Reply", + "reply-as-topic": "Reply as topic", "guest-login-reply": "Log in to reply", "edit": "Edit", "delete": "Delete", diff --git a/public/src/client/topic/postTools.js b/public/src/client/topic/postTools.js index 0ae05ec7a5..8f53ab7e9b 100644 --- a/public/src/client/topic/postTools.js +++ b/public/src/client/topic/postTools.js @@ -117,6 +117,12 @@ define('forum/topic/postTools', ['share', 'navigator', 'components', 'translator onReplyClicked($(this), tid, topicName); }); + $('.topic').on('click', '[component="topic/reply-as-topic"]', function() { + $(window).trigger('action:composer.topic.new', { + cid: ajaxify.data.cid, + }); + }); + postContainer.on('click', '[component="post/favourite"]', function() { favouritePost($(this), getData($(this), 'data-pid')); });