Browse Source
The red box already makes clear it's an error
Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/1164/head
Joas Schilling
9 years ago
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
1 changed files with
4 additions and
4 deletions
-
settings/js/personal.js
|
|
|
@ -306,8 +306,8 @@ $(document).ready(function () { |
|
|
|
msg = data.jqXHR.responseJSON.data.message; |
|
|
|
} |
|
|
|
avatarResponseHandler({ |
|
|
|
data: { |
|
|
|
message: t('settings', 'An error occurred: {message}', { message: msg }) |
|
|
|
data: { |
|
|
|
message: msg |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
@ -324,7 +324,7 @@ $(document).ready(function () { |
|
|
|
url: OC.generateUrl('/avatar/'), |
|
|
|
data: { path: path } |
|
|
|
}).done(avatarResponseHandler) |
|
|
|
.fail(function(jqXHR, status){ |
|
|
|
.fail(function(jqXHR) { |
|
|
|
var msg = jqXHR.statusText + ' (' + jqXHR.status + ')'; |
|
|
|
if (!_.isUndefined(jqXHR.responseJSON) && |
|
|
|
!_.isUndefined(jqXHR.responseJSON.data) && |
|
|
|
@ -334,7 +334,7 @@ $(document).ready(function () { |
|
|
|
} |
|
|
|
avatarResponseHandler({ |
|
|
|
data: { |
|
|
|
message: t('settings', 'An error occurred: {message}', { message: msg }) |
|
|
|
message: msg |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|