]> source.dussan.org Git - nextcloud-server.git/commitdiff
The red box already makes clear it's an error 1847/head
authorJoas Schilling <coding@schilljs.com>
Mon, 29 Aug 2016 14:50:45 +0000 (16:50 +0200)
committerJoas Schilling <coding@schilljs.com>
Fri, 21 Oct 2016 09:14:26 +0000 (11:14 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
settings/js/personal.js

index 16a8d184da6f167116cc6f57bd3ed8d1f3988c0c..0f13d0b8b5eb87c89375a0fec15f596337bd627a 100644 (file)
@@ -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
                                                        }
                                                });
                                        });