From a9008ab4d9a334f82db829e14138215afbab7833 Mon Sep 17 00:00:00 2001 From: Kathrin Osswald <kathrin.osswald@uni-ulm.de> Date: Mon, 28 Oct 2019 15:15:08 +0100 Subject: [PATCH] Adjusted login.mustache template due to upstream changes in theme Boost. --- CHANGES.md | 1 + templates/login.mustache | 5 ++++- templates/login.mustache.original | 5 ++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index f0e8938..fdc0040 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -6,6 +6,7 @@ Changes ### Unreleased +* 2019-10-28 - Adjusted login.mustache template due to upstream changes in theme Boost. * 2019-10-28 - Adjusted columns2.mustache template due to upstream changes in theme Boost. * 2019-10-28 - Adjusted loginform.mustache template due to upstream changes in Moodle core. * 2019-10-28 - Adjusted function favicon() in core_renderer.php due to upstream changes in Moodle core. diff --git a/templates/login.mustache b/templates/login.mustache index 679c45a..bb55ad4 100644 --- a/templates/login.mustache +++ b/templates/login.mustache @@ -80,5 +80,8 @@ </body> </html> {{#js}} -require(['theme_boost/loader']); +M.util.js_pending('theme_boost/loader'); +require(['theme_boost/loader'], function() { + M.util.js_complete('theme_boost/loader'); +}); {{/js}} diff --git a/templates/login.mustache.original b/templates/login.mustache.original index f44017d..554a5c0 100644 --- a/templates/login.mustache.original +++ b/templates/login.mustache.original @@ -67,5 +67,8 @@ </body> </html> {{#js}} -require(['theme_boost/loader']); +M.util.js_pending('theme_boost/loader'); +require(['theme_boost/loader'], function() { + M.util.js_complete('theme_boost/loader'); +}); {{/js}} -- GitLab