summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/personal.js11
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);
});