mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: use actions in user_stream_view.js
This commit is contained in:
parent
c8bc9bd5db
commit
6ea257d0b1
@ -12,14 +12,16 @@ Discourse.UserStreamView = Discourse.View.extend(Discourse.LoadMore, {
|
|||||||
eyelineSelector: '.user-stream .item',
|
eyelineSelector: '.user-stream .item',
|
||||||
classNames: ['user-stream'],
|
classNames: ['user-stream'],
|
||||||
|
|
||||||
loadMore: function() {
|
actions: {
|
||||||
var userStreamView = this;
|
loadMore: function() {
|
||||||
if (userStreamView.get('loading')) { return; }
|
var userStreamView = this;
|
||||||
|
if (userStreamView.get('loading')) { return; }
|
||||||
|
|
||||||
var stream = this.get('controller.model');
|
var stream = this.get('controller.model');
|
||||||
stream.findItems().then(function() {
|
stream.findItems().then(function() {
|
||||||
userStreamView.set('loading', false);
|
userStreamView.set('loading', false);
|
||||||
userStreamView.get('eyeline').flushRest();
|
userStreamView.get('eyeline').flushRest();
|
||||||
});
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user