Skip to content

Node.js based forum software built for the modern web

fixed logger.tpl to use the new requirejs code

Andrew Darqui8cc71d2b47cd
diff --git a/public/templates/admin/logger.tpl b/public/templates/admin/logger.tpl
index 83f569010b..7366760b83 100644
--- a/public/templates/admin/logger.tpl
+++ b/public/templates/admin/logger.tpl
@@ -40,10 +40,7 @@
<button class="btn btn-lg btn-primary" id="save">Save</button>
<script>
- var loadDelay = setInterval(function() {
- if (nodebb_admin) {
- nodebb_admin.prepare();
- clearInterval(loadDelay);
- }
- }, 500);
+ require(['forum/admin/settings'], function(Settings) {
+ Settings.prepare();
+ });
</script>