mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 22:45:46 +01:00
fixing deprecated global translator call
This commit is contained in:
@@ -469,11 +469,13 @@ app.cacheBuster = null;
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
translator.translate('[[global:' + status + ']]', function(translated) {
|
require(['translator'], function(translator) {
|
||||||
el.removeClass('online offline dnd away')
|
translator.translate('[[global:' + status + ']]', function(translated) {
|
||||||
.addClass(status)
|
el.removeClass('online offline dnd away')
|
||||||
.attr('title', translated)
|
.addClass(status)
|
||||||
.attr('data-original-title', translated);
|
.attr('title', translated)
|
||||||
|
.attr('data-original-title', translated);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user