From: Joas Schilling Date: Mon, 29 Aug 2016 14:50:45 +0000 (+0200) Subject: The red box already makes clear it's an error X-Git-Tag: v10.0.2~87^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=116d17be86fd59a2178040d2fa328b20a6f24501;p=nextcloud-server.git The red box already makes clear it's an error Signed-off-by: Joas Schilling --- 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 } }); });