mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 23:23:52 +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() {
|
var reply = function reply() {
|
||||||
DiscussionControls.replyAction.call(_this2.props.discussion, true).then(function (newComponent) {
|
DiscussionControls.replyAction.call(_this2.props.discussion, true);
|
||||||
newComponent.focus();
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return m(
|
return m(
|
||||||
|
|
|
@ -32,9 +32,7 @@ export default class ReplyPlaceholder extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
const reply = () => {
|
const reply = () => {
|
||||||
DiscussionControls.replyAction.call(this.props.discussion, true).then(function (newComponent) {
|
DiscussionControls.replyAction.call(this.props.discussion, true);
|
||||||
newComponent.focus();
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user