mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
Merge branch 'MDL-67828-master' of git://github.com/rezaies/moodle
This commit is contained in:
commit
7fb2f4d1a5
2
calendar/amd/build/view_manager.min.js
vendored
2
calendar/amd/build/view_manager.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -162,7 +162,7 @@ export const refreshMonthContent = (root, year, month, courseId, categoryId, tar
|
||||
return Templates.replaceNode(target, html, js);
|
||||
})
|
||||
.then(() => {
|
||||
document.querySelector('body').dispatchEvent(new Event(CalendarEvents.viewUpdated));
|
||||
document.querySelector('body').dispatchEvent(new CustomEvent(CalendarEvents.viewUpdated));
|
||||
return;
|
||||
})
|
||||
.always(() => {
|
||||
@ -248,7 +248,7 @@ export const refreshDayContent = (root, year, month, day, courseId, categoryId,
|
||||
return Templates.replaceNode(target, html, js);
|
||||
})
|
||||
.then(() => {
|
||||
document.querySelector('body').dispatchEvent(new Event(CalendarEvents.viewUpdated));
|
||||
document.querySelector('body').dispatchEvent(new CustomEvent(CalendarEvents.viewUpdated));
|
||||
return;
|
||||
})
|
||||
.always(() => {
|
||||
@ -355,7 +355,7 @@ export const reloadCurrentUpcoming = (root, courseId = 0, categoryId = 0, target
|
||||
return Templates.replaceNode(target, html, js);
|
||||
})
|
||||
.then(() => {
|
||||
document.querySelector('body').dispatchEvent(new Event(CalendarEvents.viewUpdated));
|
||||
document.querySelector('body').dispatchEvent(new CustomEvent(CalendarEvents.viewUpdated));
|
||||
return;
|
||||
})
|
||||
.always(function() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user