|
|
|
@ -114,16 +114,16 @@ app.cacheBuster = null;
|
|
|
|
|
if (app.user.uid > 0) {
|
|
|
|
|
unread.initUnreadTopics();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function finishLoad() {
|
|
|
|
|
$(window).trigger('action:app.load');
|
|
|
|
|
app.showMessages();
|
|
|
|
|
appLoaded = true;
|
|
|
|
|
}
|
|
|
|
|
overrides.overrideTimeago();
|
|
|
|
|
if (app.user.timeagoCode && app.user.timeagoCode !== 'en') {
|
|
|
|
|
require(['timeago/locales/jquery.timeago.' + app.user.timeagoCode], function () {
|
|
|
|
|
$(window).trigger('action:app.load');
|
|
|
|
|
appLoaded = true;
|
|
|
|
|
});
|
|
|
|
|
require(['timeago/locales/jquery.timeago.' + app.user.timeagoCode], finishLoad);
|
|
|
|
|
} else {
|
|
|
|
|
$(window).trigger('action:app.load');
|
|
|
|
|
appLoaded = true;
|
|
|
|
|
finishLoad();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|