From 54fcd3cf134832319bd9ee30a6d0a3e68c14fd07 Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 4 Mar 2021 12:42:46 +0100 Subject: [PATCH] Fix account deletion form multiple password attempts --- www/settings/inner.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/www/settings/inner.js b/www/settings/inner.js index 0139ab2b4..38969f823 100644 --- a/www/settings/inner.js +++ b/www/settings/inner.js @@ -485,14 +485,15 @@ define([ var spinner = UI.makeSpinner($form); UI.confirmButton(button, { - classes: 'btn-danger' + classes: 'btn-danger', + multiple: true }, function() { $button.prop('disabled', 'disabled'); - spinner.spin(); var password = $form.find('#cp-settings-delete-account').val(); if (!password) { return void UI.warn(Messages.error); } + spinner.spin(); sframeChan.query("Q_SETTINGS_DELETE_ACCOUNT", { password: password }, function(err, data) { @@ -520,7 +521,7 @@ define([ h('pre', JSON.stringify(data, 0, 2)) ]); UI.alert(msg); - spinner.done(); + spinner.hide(); $button.prop('disabled', ''); }); });