@@ -51,6 +51,7 @@ class ActivityController {
|
||||
self.fetchUntilResults();
|
||||
}
|
||||
self.activityservice.fetchNewerActivities(self.type, self.element.id).then(function () {});
|
||||
self.cardservice.getCurrent().commentsUnread = 0;
|
||||
}, true);
|
||||
|
||||
let $target = $('.newCommentForm .message');
|
||||
|
||||
@@ -30,7 +30,7 @@ const DECK_ACTIVITY_TYPE_CARD = 'deck_card';
|
||||
/* global OC oc_requesttoken */
|
||||
class ActivityService {
|
||||
|
||||
static get RESULT_PER_PAGE() { return 5; }
|
||||
static get RESULT_PER_PAGE() { return 50; }
|
||||
|
||||
constructor ($rootScope, $filter, $http, $q) {
|
||||
this.running = false;
|
||||
@@ -116,7 +116,7 @@ class ActivityService {
|
||||
});
|
||||
}
|
||||
|
||||
fetchMoreActivities(type, id) {
|
||||
fetchMoreActivities(type, id, success) {
|
||||
this.checkData(type, id);
|
||||
if (this.running === true) {
|
||||
return this.runningPromise;
|
||||
|
||||
Reference in New Issue
Block a user