Merge branch 'MDL-83002-404' of https://github.com/marinaglancy/moodle into MOODLE_404_STABLE

This commit is contained in:
Jun Pataleta 2024-10-16 20:32:28 +08:00
commit 1427cd178c
No known key found for this signature in database
GPG Key ID: F83510526D99E2C7
4 changed files with 7 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -813,7 +813,7 @@ const registerListeners = () => {
document.addEventListener('focusin', preventOverlap);
document.addEventListener('focusout', preventOverlap);
window.addEventListener('resize', debounce(closeOnResizeListener, 400));
window.addEventListener('resize', debounce(closeOnResizeListener, 400, {pending: true}));
};
registerListeners();

View File

@ -57,5 +57,8 @@
</div>
</div>
{{#js}}
require(['theme_boost/drawers']);
M.util.js_pending('theme_boost/drawers:load');
require(['theme_boost/drawers'], function() {
M.util.js_complete('theme_boost/drawers:load');
});
{{/js}}