From 14ee7614ace601d3cdf185415023b4f7233c4cce Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sat, 3 Sep 2016 23:14:17 +0930 Subject: [PATCH] Remove duplicated code --- framework/core/js/forum/dist/app.js | 4 +--- framework/core/js/forum/src/components/ReplyPlaceholder.js | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/framework/core/js/forum/dist/app.js b/framework/core/js/forum/dist/app.js index 7faa15f73..cf6c6ca41 100644 --- a/framework/core/js/forum/dist/app.js +++ b/framework/core/js/forum/dist/app.js @@ -26251,9 +26251,7 @@ System.register('flarum/components/ReplyPlaceholder', ['flarum/Component', 'flar } var reply = function reply() { - DiscussionControls.replyAction.call(_this2.props.discussion, true).then(function (newComponent) { - newComponent.focus(); - }); + DiscussionControls.replyAction.call(_this2.props.discussion, true); }; return m( diff --git a/framework/core/js/forum/src/components/ReplyPlaceholder.js b/framework/core/js/forum/src/components/ReplyPlaceholder.js index 3d277d560..febd1356e 100644 --- a/framework/core/js/forum/src/components/ReplyPlaceholder.js +++ b/framework/core/js/forum/src/components/ReplyPlaceholder.js @@ -32,9 +32,7 @@ export default class ReplyPlaceholder extends Component { } const reply = () => { - DiscussionControls.replyAction.call(this.props.discussion, true).then(function (newComponent) { - newComponent.focus(); - }); + DiscussionControls.replyAction.call(this.props.discussion, true); }; return (