forked from MarseyWorld/MarseyWorld
fix button switching on 3 buttons
parent
18c736d969
commit
856d0e5023
|
@ -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');
|
||||||
|
|
Loading…
Reference in New Issue