fix
This commit is contained in:
@@ -360,7 +360,7 @@ $email_preff = array (
|
||||
<!--end::Card body-->
|
||||
<!--begin::Card footer-->
|
||||
<div class="card-footer d-flex justify-content-end py-6 px-9">
|
||||
<button onclick="return deactivateMyAccount();" id="kt_account_deactivate_account_submit" type="submit" class="btn btn-danger fw-bold">Deactivate Account</button>
|
||||
<div id="del-sec" name="del-sec"><button onclick="return deactivateMyAccount();" id="kt_account_deactivate_account_submit" type="submit" class="btn btn-danger fw-bold">Deactivate Account</button></div>
|
||||
</div>
|
||||
<!--end::Card footer-->
|
||||
</form>
|
||||
@@ -376,15 +376,27 @@ $email_preff = array (
|
||||
|
||||
function deactivateMyAccount() {
|
||||
var deactivate = document.dact_individual.deactivate.value;
|
||||
|
||||
|
||||
if (deactivate == '') {
|
||||
alert('You must confirm my account deactivation');
|
||||
return false;
|
||||
//return false;
|
||||
}
|
||||
|
||||
var dialog = confirm("Please confirm account deletion. We will not be able to reverse this action. ?");
|
||||
if (dialog) {
|
||||
//console.log('Continue')
|
||||
}
|
||||
else {
|
||||
return true;
|
||||
}
|
||||
|
||||
return true;
|
||||
$.ajax({
|
||||
url: "/member/deleteacc?contact_id=DELETE"
|
||||
}).done(function (data) {
|
||||
|
||||
$('#del-sec').html(data);
|
||||
});
|
||||
|
||||
return false;
|
||||
}
|
||||
// -->
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user