|
|
@ -45,8 +45,11 @@ define(function() {
|
|
|
|
app.loadConfig();
|
|
|
|
app.loadConfig();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
error: function(data, textStatus, jqXHR) {
|
|
|
|
error: function(data, textStatus, jqXHR) {
|
|
|
|
// Update error text
|
|
|
|
var message = data.responseJSON;
|
|
|
|
translator.translate(data.responseJSON, function(errorText) {
|
|
|
|
if (typeof data.responseJSON !== 'string') {
|
|
|
|
|
|
|
|
message = data.responseJSON.message || '';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
translator.translate(message, function(errorText) {
|
|
|
|
$('#login-error-notify').show().html(errorText);
|
|
|
|
$('#login-error-notify').show().html(errorText);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|