Skip to content

Commit

Permalink
MDL-57447 block_myoverview: paging bar module needs page number
Browse files Browse the repository at this point in the history
Part of MDL-55611 epic.
  • Loading branch information
lameze authored and Damyon Wiese committed Apr 3, 2017
1 parent afe1a3c commit 58929f0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion blocks/myoverview/amd/src/paging_content.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ define(['jquery', 'core/templates', 'block_myoverview/paging_bar'],
PagingContent.prototype.createPage = function(pageNumber) {

return this.loadContent(pageNumber).then(function(html, js) {
console.log(html);
Templates.appendNodeContents(this.root, html, js);
}.bind(this)).then(function () {
return this.findPage(pageNumber);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ require(
return CoursesRepository.queryFromStatus(status, limit, offset)
.then(function(courses) {
return Templates.render('block_myoverview/course-paging-content-item', {courses: courses});
return Templates.render('block_myoverview/course-paging-content-item', {courses: courses, page: pageNumber});
})
};

Expand Down

0 comments on commit 58929f0

Please sign in to comment.