mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: move call to ajaxify.parseData out to root level
This commit is contained in:
@@ -23,10 +23,7 @@ app.isFocused = true;
|
|||||||
app.currentRoom = null;
|
app.currentRoom = null;
|
||||||
app.widgets = {};
|
app.widgets = {};
|
||||||
app.flags = {};
|
app.flags = {};
|
||||||
|
|
||||||
app.onDomReady = function () {
|
app.onDomReady = function () {
|
||||||
document.addEventListener('DOMContentLoaded', ajaxify.parseData);
|
|
||||||
|
|
||||||
$(document).ready(async function () {
|
$(document).ready(async function () {
|
||||||
if (app.user.timeagoCode && app.user.timeagoCode !== 'en') {
|
if (app.user.timeagoCode && app.user.timeagoCode !== 'en') {
|
||||||
await import(/* webpackChunkName: "timeago/[request]" */ 'timeago/locales/jquery.timeago.' + app.user.timeagoCode);
|
await import(/* webpackChunkName: "timeago/[request]" */ 'timeago/locales/jquery.timeago.' + app.user.timeagoCode);
|
||||||
@@ -35,6 +32,7 @@ app.onDomReady = function () {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
document.addEventListener('DOMContentLoaded', ajaxify.parseData);
|
||||||
|
|
||||||
(function () {
|
(function () {
|
||||||
let appLoaded = false;
|
let appLoaded = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user