MDL-59676 core_calendar: reload calendar region after event edit
authorSimey Lameze <simey@moodle.com>
Mon, 21 Aug 2017 08:13:32 +0000 (16:13 +0800)
committerSimey Lameze <simey@moodle.com>
Mon, 21 Aug 2017 08:13:32 +0000 (16:13 +0800)
calendar/amd/build/calendar.min.js
calendar/amd/src/calendar.js

index 59256a9..877edd4 100644 (file)
Binary files a/calendar/amd/build/calendar.min.js and b/calendar/amd/build/calendar.min.js differ
index b1f37e7..7848b93 100644 (file)
@@ -198,7 +198,7 @@ define([
             CalendarViewManager.reloadCurrentMonth();
         });
         body.on(CalendarEvents.updated, function() {
-            window.location.reload();
+            CalendarViewManager.reloadCurrentMonth();
         });
         body.on(CalendarEvents.editActionEvent, function(e, url) {
             // Action events needs to be edit directly on the course module.