MDL-58464 block_myoverview: fix js error in timeline view courses
authorRyan Wyllie <ryan@moodle.com>
Tue, 18 Apr 2017 07:03:13 +0000 (07:03 +0000)
committerRyan Wyllie <ryan@moodle.com>
Tue, 18 Apr 2017 07:03:13 +0000 (07:03 +0000)
blocks/myoverview/templates/timeline-view-courses.mustache

index 807135d..e2c5386 100644 (file)
@@ -79,7 +79,7 @@
         CustomEvents.define(root, [CustomEvents.events.activate]);
         // Show more courses and load their events when the user clicks the "more courses"
         // button.
-        root.on(CustomEvents.events.activate, '[data-action="more-courses"]', function(e) {
+        root.on(CustomEvents.events.activate, '[data-action="more-courses"]', function(e, data) {
             var button = $(e.target);
             var blocks = root.find('[data-region="course-block"].hidden');