fixing deprecated global translator call

v1.18.x
psychobunny 10 years ago
parent 5299e1fdc6
commit f9b104192b

@ -469,11 +469,13 @@ app.cacheBuster = null;
return;
}
translator.translate('[[global:' + status + ']]', function(translated) {
el.removeClass('online offline dnd away')
.addClass(status)
.attr('title', translated)
.attr('data-original-title', translated);
require(['translator'], function(translator) {
translator.translate('[[global:' + status + ']]', function(translated) {
el.removeClass('online offline dnd away')
.addClass(status)
.attr('title', translated)
.attr('data-original-title', translated);
});
});
};

Loading…
Cancel
Save