From 46dd549e8005d7d26b446cd68ce5e298216ea97a Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Wed, 26 Apr 2017 11:19:09 +0200 Subject: change status indicator if value was changed Signed-off-by: Bjoern Schiessle --- settings/js/federationsettingsview.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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) { -- cgit v1.2.3