2013-08-19 07:14:26 -04:00
|
|
|
Discourse.AdminFlagsView = Discourse.View.extend(Discourse.LoadMore, {
|
|
|
|
loading: false,
|
|
|
|
eyelineSelector: '.admin-flags tbody tr',
|
2014-07-28 13:17:37 -04:00
|
|
|
|
|
|
|
actions: {
|
|
|
|
|
|
|
|
loadMore: function() {
|
|
|
|
var self = this;
|
|
|
|
|
|
|
|
if (this.get("loading") || this.get("model.allLoaded")) { return; }
|
|
|
|
|
|
|
|
this.set("loading", true);
|
|
|
|
|
|
|
|
this.get("controller").loadMore().then(function () {
|
|
|
|
self.set("loading", false);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2013-08-19 07:14:26 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
});
|