forked from rDrama/rDrama
1
0
Fork 0

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) {
sendFormXHR(form,
() => {
form.previousElementSibling.classList.remove('d-none');
form.nextElementSibling.classList.remove('d-none');
const days = form.querySelector("input[name=days]")
if (!days || !days.value)
form.classList.add('d-none');