diff --git a/settings/css/settings.css b/settings/css/settings.css index cf9e7efbc8..70d181a11d 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -163,7 +163,8 @@ input#passwordbutton { width: 100%; } -.personal-settings-container > div > form span[class^="icon-checkmark"] { +.personal-settings-container > div > form span[class^="icon-checkmark"], +.personal-settings-container > div > form span[class^="icon-error"] { position: relative; left: 90%; top: -44px; diff --git a/settings/js/federationsettingsview.js b/settings/js/federationsettingsview.js index d5537d1940..b9722520f6 100644 --- a/settings/js/federationsettingsview.js +++ b/settings/js/federationsettingsview.js @@ -108,9 +108,12 @@ } }); - $.when(savingData).done(function() { - //OC.msg.finishedSaving('#personal-settings-container .msg', result) - self._showInputChangeSuccess(field); + $.when(savingData).done(function(data) { + if (data.status === "success") { + self._showInputChangeSuccess(field); + } else { + self._showInputChangeFail(field); + } }); }, @@ -178,6 +181,14 @@ } }, + _showInputChangeFail: function(field) { + var $icon = this.$('#' + field + 'form > .icon-error'); + $icon.fadeIn(200); + setTimeout(function() { + $icon.fadeOut(300); + }, 2000); + }, + _setFieldScopeIcon: function(field, scope) { var $icon = this.$('#' + field + 'form > h2 > span'); diff --git a/settings/templates/settings/personal/personal.info.php b/settings/templates/settings/personal/personal.info.php index 27c5915d5b..2250af2580 100644 --- a/settings/templates/settings/personal/personal.info.php +++ b/settings/templates/settings/personal/personal.info.php @@ -78,7 +78,7 @@ vendor_style('jcrop/css/jquery.Jcrop');
t('Choose as profile picture')); ?>
-