summaryrefslogtreecommitdiffstats
path: root/settings/js/personal.js
diff options
context:
space:
mode:
Diffstat (limited to 'settings/js/personal.js')
-rw-r--r--settings/js/personal.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js
index 3290074a84c..dbc82758fd1 100644
--- a/settings/js/personal.js
+++ b/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
}
});
});