remove timeago loading

main
Barış Soner Uşaklı 7 years ago
parent 25c04e5142
commit 71dfb32ec2

@ -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'));
}); });
} }

Loading…
Cancel
Save