fix button switching on 3 buttons

master
Aevann 2023-09-20 17:57:31 +03:00
parent 18c736d969
commit 856d0e5023
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@ function sendFormXHR(form, extraActionsOnSuccess) {
function sendFormXHRSwitch(form) { function sendFormXHRSwitch(form) {
sendFormXHR(form, sendFormXHR(form,
() => { () => {
form.previousElementSibling.classList.remove('d-none'); form.nextElementSibling.classList.remove('d-none');
const days = form.querySelector("input[name=days]") const days = form.querySelector("input[name=days]")
if (!days || !days.value) if (!days || !days.value)
form.classList.add('d-none'); form.classList.add('d-none');