mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 06:03:39 +08:00
Re-add event after a discussion has loaded
replyAction uses it
This commit is contained in:
parent
8859e49241
commit
bd3bc6b274
|
@ -87,6 +87,8 @@ export default class DiscussionPage extends mixin(Component, evented) {
|
||||||
this.stream = new PostStream({ discussion, includedPosts });
|
this.stream = new PostStream({ discussion, includedPosts });
|
||||||
this.stream.on('positionChanged', this.positionChanged.bind(this));
|
this.stream.on('positionChanged', this.positionChanged.bind(this));
|
||||||
this.stream.goToNumber(m.route.param('near') || 1, true);
|
this.stream.goToNumber(m.route.param('near') || 1, true);
|
||||||
|
|
||||||
|
this.trigger('loaded');
|
||||||
}
|
}
|
||||||
|
|
||||||
onload(element, isInitialized, context) {
|
onload(element, isInitialized, context) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user