diff --git a/settings/css/settings.css b/settings/css/settings.css index cf9e7efbc88..9202a28899b 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -163,12 +163,13 @@ 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; + right: 8px; + top: -28px; pointer-events: none; - width: 44px; + float: right; } /* verify accounts */ diff --git a/settings/js/federationsettingsview.js b/settings/js/federationsettingsview.js index d5537d19404..b9722520f6d 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 27c5915d5be..7ed617a939e 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');
- + @@ -99,7 +99,8 @@ vendor_style('jcrop/css/jquery.Jcrop'); t('No display name set')); } ?> - + + @@ -130,15 +131,16 @@ vendor_style('jcrop/css/jquery.Jcrop'); placeholder="t('Your email address')); ?>" autocomplete="on" autocapitalize="none" autocorrect="off" /> + + t('No email address set')); }?> t('For password reset and notifications')); ?> - - + @@ -153,7 +155,7 @@ vendor_style('jcrop/css/jquery.Jcrop'); value="" placeholder="t('Your phone number')); ?>" autocomplete="on" autocapitalize="none" autocorrect="off" /> - + @@ -171,7 +173,7 @@ vendor_style('jcrop/css/jquery.Jcrop'); placeholder="t('Your postal address')); ?>" value="" autocomplete="on" autocapitalize="none" autocorrect="off" /> - + @@ -216,7 +218,7 @@ vendor_style('jcrop/css/jquery.Jcrop'); autocomplete="on" autocapitalize="none" autocorrect="off" /> - + @@ -261,7 +263,7 @@ vendor_style('jcrop/css/jquery.Jcrop'); autocomplete="on" autocapitalize="none" autocorrect="off" /> - + @@ -283,7 +285,7 @@ vendor_style('jcrop/css/jquery.Jcrop'); - +