remove extra translator require

v1.18.x
Baris Usakli 7 years ago
parent 2fa4b2918e
commit 947fc739eb

@ -87,12 +87,10 @@ define('forum/register', ['translator', 'zxcvbn'], function (translator, zxcvbn)
if (data.referrer) {
window.location.href = data.referrer;
} else if (data.message) {
require(['translator'], function (translator) {
translator.translate(data.message, function (msg) {
bootbox.alert(msg);
ajaxify.go('/');
});
});
}
},
error: function (data) {

Loading…
Cancel
Save