Merge branch 'MDL-67828-master' of git://github.com/rezaies/moodle
This commit is contained in:
+1
-1
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() {
|
||||
|
||||
Reference in New Issue
Block a user