diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2017-04-26 10:03:21 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-04-28 23:41:36 -0300 |
commit | 06265fe77028c9d04f00e411d1a43bf2718052e4 (patch) | |
tree | 754dbe633f5657d8d322fce1da7876dad720b991 /settings/js | |
parent | 2a07ec8e2198985f25641289f0b4d8b2bb76ed28 (diff) | |
download | nextcloud-server-06265fe77028c9d04f00e411d1a43bf2718052e4.tar.gz nextcloud-server-06265fe77028c9d04f00e411d1a43bf2718052e4.zip |
make use of verification buttons
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/personal.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js index d5b9b7911a0..41051d9e25f 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -208,15 +208,16 @@ $(document).ready(function () { dialog.style.display = "block"; }; - $(".verify").click(function () { - var account = $(this).attr('id'); - - // Add: make call to get content for verify dialog + $(".verify-action").click(function () { + var account = $(this); + var accountId = $(this).attr('id'); $.ajax( - OC.generateUrl('/settings/users/{account}/verify', {account: account}), + OC.generateUrl('/settings/users/{account}/verify', {account: accountId}), {method: 'GET'} ).done(function(data) { + account.attr('title', 'Verifying...'); + account.attr('src', OC.imagePath('core', 'actions/verifying.svg')); showVerifyDialog(data.msg, data.code); }); |