From 116d17be86fd59a2178040d2fa328b20a6f24501 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 29 Aug 2016 16:50:45 +0200 Subject: [PATCH] The red box already makes clear it's an error Signed-off-by: Joas Schilling --- settings/js/personal.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/settings/js/personal.js b/settings/js/personal.js index 16a8d184da6..0f13d0b8b5e 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -286,8 +286,8 @@ $(document).ready(function () { msg = data.jqXHR.responseJSON.data.message; } avatarResponseHandler({ - data: { - message: t('settings', 'An error occurred: {message}', { message: msg }) + data: { + message: msg } }); } @@ -304,7 +304,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) && @@ -314,7 +314,7 @@ $(document).ready(function () { } avatarResponseHandler({ data: { - message: t('settings', 'An error occurred: {message}', { message: msg }) + message: msg } }); }); -- 2.39.5