Skip to content

Commit

Permalink
MDL-67140 calendar: fix selector switching between days.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulholden committed Nov 5, 2019
1 parent d769970 commit dcab750
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion calendar/amd/build/calendar_threemonth.min.js

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

2 changes: 1 addition & 1 deletion calendar/amd/build/calendar_threemonth.min.js.map

Large diffs are not rendered by default.

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: 1 addition & 1 deletion calendar/amd/build/view_manager.min.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions calendar/amd/src/calendar_threemonth.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ function(
requestYear = nextMonth.data('nextYear');
requestMonth = nextMonth.data('nextMonth');
oldMonth = previousMonth;
} else {
return $.Deferred().resolve();
}

return CalendarViewManager.refreshMonthContent(
Expand Down
2 changes: 1 addition & 1 deletion calendar/amd/src/view_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
};
Expand Down

0 comments on commit dcab750

Please sign in to comment.