summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2017-04-26 11:19:09 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-04-28 23:41:36 -0300
commit46dd549e8005d7d26b446cd68ce5e298216ea97a (patch)
tree113f6d80478e609898fdee7cfd20f0faab74c270 /settings/js
parentebcb84768158b11e532929ccfe9bfbe7d8f4a62d (diff)
downloadnextcloud-server-46dd549e8005d7d26b446cd68ce5e298216ea97a.tar.gz
nextcloud-server-46dd549e8005d7d26b446cd68ce5e298216ea97a.zip
change status indicator if value was changed
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/federationsettingsview.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/settings/js/federationsettingsview.js b/settings/js/federationsettingsview.js
index 2715c1e1e08..4a502544e8d 100644
--- a/settings/js/federationsettingsview.js
+++ b/settings/js/federationsettingsview.js
@@ -133,11 +133,23 @@
},
_showInputChangeSuccess: function(field) {
- var $icon = this.$('#' + field + 'form > span');
+ var $icon = this.$('#' + field + 'form > .icon-checkmark');
$icon.fadeIn(200);
setTimeout(function() {
$icon.fadeOut(300);
}, 2000);
+
+ if (field === 'twitter' || field === 'webpage')
+ {
+ var verifyStatus = this.$('#' + field + 'form > .verify > #verify-' + field);
+ verifyStatus.attr('title', 'Verify');
+ verifyStatus.attr('src', OC.imagePath('core', 'actions/verify.svg'));
+ verifyStatus.addClass('verify-action');
+ } else if (field === 'email') {
+ var verifyStatus = this.$('#' + field + 'form > .verify > #verify-' + field);
+ verifyStatus.attr('title', 'Verifying...');
+ verifyStatus.attr('src', OC.imagePath('core', 'actions/verifying.svg'));
+ }
},
_setFieldScopeIcon: function(field, scope) {