mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
FIX: Avoid double load on discovery model change
This commit is contained in:
parent
8dc0fa97d4
commit
41e722b8bf
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ export default Ember.View.extend(LoadMore, UrlRefresh, {
|
||||||
if (scrollTo && scrollTo >= 0) {
|
if (scrollTo && scrollTo >= 0) {
|
||||||
Ember.run.schedule('afterRender', () => $(window).scrollTop(scrollTo + 1));
|
Ember.run.schedule('afterRender', () => $(window).scrollTop(scrollTo + 1));
|
||||||
} else {
|
} else {
|
||||||
this.loadMoreUnlessFull();
|
Ember.run.scheduleOnce('afterRender', this, this.loadMoreUnlessFull);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue