Skip to content

Node.js based forum software built for the modern web

fix: ajaxify.data in admin pages, move scripts to footer.tpl

Barış Soner Uşaklı5e3d1a9343fd
diff --git a/src/views/admin/footer.tpl b/src/views/admin/footer.tpl
index 698145097c..844bec9be2 100644
--- a/src/views/admin/footer.tpl
+++ b/src/views/admin/footer.tpl
@@ -12,6 +12,14 @@
</div>
</div>
{{{ end }}}
+
+ <script defer src="{relative_path}/assets/language/{config.userLang}/full.min.js?{config.cache-buster}"></script>
+ <script defer src="{relative_path}/assets/admin.min.js?{cache-buster}"></script>
+
+ {{{ each scripts }}}
+ <script defer type="text/javascript" src="{./src}"></script>
+ {{{ end }}}
+
<script>
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', prepareFooter);
diff --git a/src/views/admin/header.tpl b/src/views/admin/header.tpl
index 172af30492..1e51bc82d4 100644
--- a/src/views/admin/header.tpl
+++ b/src/views/admin/header.tpl
@@ -20,13 +20,6 @@
document.documentElement.setAttribute('data-bs-theme', 'dark');
}
</script>
-
- <script src="{relative_path}/assets/language/{config.userLang}/full.min.js?{config.cache-buster}"></script>
- <script type="text/javascript" src="{relative_path}/assets/admin.min.js?{cache-buster}"></script>
-
- {{{ each scripts }}}
- <script type="text/javascript" src="{./src}"></script>
- {{{ end }}}
</head>
<body class="admin {bodyClass}">