Skip to content

Commit

Permalink
MDL-59677 core_calendar: add missing return on changeMonth promises
Browse files Browse the repository at this point in the history
  • Loading branch information
lameze committed Aug 21, 2017
1 parent 516e744 commit 47b55da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion calendar/amd/build/view_manager.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions calendar/amd/src/view_manager.js
Expand Up @@ -77,9 +77,11 @@ define(['jquery', 'core/templates', 'core/notification', 'core_calendar/reposito
return refreshMonthContent(time, courseid)
.then(function() {
window.history.pushState({}, '', url);
return arguments;
})
.then(function() {
$('body').trigger(CalendarEvents.monthChanged, [time, courseid]);
return arguments;
});
};

Expand Down

0 comments on commit 47b55da

Please sign in to comment.