mirror of
https://github.com/flarum/framework.git
synced 2024-11-30 21:44:12 +08:00
Remove duplicated code
This commit is contained in:
parent
109782154c
commit
14ee7614ac
4
framework/core/js/forum/dist/app.js
vendored
4
framework/core/js/forum/dist/app.js
vendored
|
@ -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(
|
||||
|
|
|
@ -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 (
|
||||
|
|
Loading…
Reference in New Issue
Block a user