summaryrefslogtreecommitdiffstats
path: root/settings/js/federationsettingsview.js
diff options
context:
space:
mode:
Diffstat (limited to 'settings/js/federationsettingsview.js')
-rw-r--r--settings/js/federationsettingsview.js17
1 files changed, 14 insertions, 3 deletions
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');