mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-26 16:41:21 +01:00
fix: move ajaxify.parseData back out to DOMContentLoaded
partialy reverts 2bfccac72
This commit is contained in:
@@ -25,11 +25,12 @@ 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);
|
||||||
}
|
}
|
||||||
ajaxify.parseData();
|
|
||||||
app.load();
|
app.load();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user