mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 10:17:15 +02:00
updated approval queue message to use modal
This commit is contained in:
@@ -84,7 +84,12 @@ define('forum/register', ['csrf', 'translator'], function(csrf, translator) {
|
||||
if (data.referrer) {
|
||||
window.location.href = data.referrer;
|
||||
} else if (data.message) {
|
||||
app.alert({message: data.message, timeout: 20000});
|
||||
require(['translator'], function(translator) {
|
||||
translator.translate(data.message, function(msg) {
|
||||
bootbox.alert(msg);
|
||||
ajaxify.go('/');
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
error: function(data, status) {
|
||||
|
||||
Reference in New Issue
Block a user