MDL-59677 core_calendar: add missing return on changeMonth promises
authorSimey Lameze <simey@moodle.com>
Mon, 21 Aug 2017 07:46:41 +0000 (15:46 +0800)
committerSimey Lameze <simey@moodle.com>
Mon, 21 Aug 2017 07:52:55 +0000 (15:52 +0800)
calendar/amd/build/view_manager.min.js
calendar/amd/src/view_manager.js

index 7866676..5cc674c 100644 (file)
Binary files a/calendar/amd/build/view_manager.min.js and b/calendar/amd/build/view_manager.min.js differ
index da1e454..10024f0 100644 (file)
@@ -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;
                 });
         };