Polling for lesson updates (updates the menu and page navigation)

This commit is contained in:
Nanne Baars
2018-04-27 18:33:31 +02:00
parent 76daac0db5
commit e422da4c64
3 changed files with 46 additions and 35 deletions

View File

@ -25,6 +25,9 @@ define(['jquery',
self.navToPage(page);
}
});
setInterval(function () {
this.updatePagination();
}.bind(this), 5000);
},
findPage: function(assignment) {
@ -60,7 +63,9 @@ define(['jquery',
},
updatePagination: function() {
this.paginationControlView.updateCollection();
if ( this.paginationControlView != undefined ) {
this.paginationControlView.updateCollection();
}
},
getCurrentPage: function () {