mirror of
https://github.com/discourse/discourse.git
synced 2024-12-24 17:26:09 +08:00
14 lines
387 B
JavaScript
14 lines
387 B
JavaScript
|
Discourse.AdminFlagsView = Discourse.View.extend(Discourse.LoadMore, {
|
||
|
loading: false,
|
||
|
eyelineSelector: '.admin-flags tbody tr',
|
||
|
loadMore: function() {
|
||
|
var view = this;
|
||
|
if(this.get("loading") || this.get("model.allLoaded")) { return; }
|
||
|
this.set("loading", true);
|
||
|
this.get("controller").loadMore().then(function(){
|
||
|
view.set("loading", false);
|
||
|
});
|
||
|
}
|
||
|
|
||
|
});
|