minor fix to ban button on profile pages
parent
7fa52b14a8
commit
2b3dd62a86
|
@ -367,8 +367,8 @@ function sendFormXHR(form, extraActionsOnSuccess) {
|
|||
function sendFormXHRSwitch(form) {
|
||||
sendFormXHR(form,
|
||||
() => {
|
||||
e.target.previousElementSibling.classList.remove('d-none');
|
||||
e.target.classList.add('d-none');
|
||||
form.previousElementSibling.classList.remove('d-none');
|
||||
form.classList.add('d-none');
|
||||
}
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue