|
|
@ -198,8 +198,7 @@ $(document).ready(function() {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
function loadNotifications() {
|
|
|
|
function loadNotifications() {
|
|
|
|
const lang = utils.userLangToTimeagoCode(config.userLang);
|
|
|
|
require(['notifications'], function(notifications) {
|
|
|
|
require(['notifications', 'assets/vendor/jquery/timeago/locales/jquery.timeago.' + lang + '.js'], function(notifications) {
|
|
|
|
|
|
|
|
notifications.loadNotifications($('#menu [data-section="notifications"] ul'));
|
|
|
|
notifications.loadNotifications($('#menu [data-section="notifications"] ul'));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|