MDL-67140 calendar: fix selector switching between days.
authorPaul Holden <paulh@moodle.com>
Tue, 5 Nov 2019 16:41:12 +0000 (16:41 +0000)
committerPaul Holden <paulh@moodle.com>
Tue, 5 Nov 2019 16:41:12 +0000 (16:41 +0000)
calendar/amd/build/calendar_threemonth.min.js
calendar/amd/build/calendar_threemonth.min.js.map
calendar/amd/build/view_manager.min.js
calendar/amd/build/view_manager.min.js.map
calendar/amd/src/calendar_threemonth.js
calendar/amd/src/view_manager.js

index b3af839..7777a3b 100644 (file)
Binary files a/calendar/amd/build/calendar_threemonth.min.js and b/calendar/amd/build/calendar_threemonth.min.js differ
index 6591833..04406fe 100644 (file)
Binary files a/calendar/amd/build/calendar_threemonth.min.js.map and b/calendar/amd/build/calendar_threemonth.min.js.map differ
index 628c38d..79f116c 100644 (file)
Binary files a/calendar/amd/build/view_manager.min.js and b/calendar/amd/build/view_manager.min.js differ
index 5edaca0..161e799 100644 (file)
Binary files a/calendar/amd/build/view_manager.min.js.map and b/calendar/amd/build/view_manager.min.js.map differ
index 68d16be..33545c3 100644 (file)
@@ -93,6 +93,8 @@ function(
                 requestYear = nextMonth.data('nextYear');
                 requestMonth = nextMonth.data('nextMonth');
                 oldMonth = previousMonth;
+            } else {
+                return $.Deferred().resolve();
             }
 
             return CalendarViewManager.refreshMonthContent(
index 28b04d9..887645b 100644 (file)
@@ -317,7 +317,7 @@ define([
                     return arguments;
                 })
                 .then(function() {
-                    $('body').trigger(CalendarEvents.dayChanged, [year, month, day, courseId, categoryId]);
+                    $('body').trigger(CalendarEvents.dayChanged, [year, month, courseId, categoryId]);
                     return arguments;
                 });
         };