1
0
Fork 0

add event listener for submitting overide checkbox

This commit is contained in:
Ryan Mwangi 2024-10-04 15:57:38 +03:00
parent 73781d7570
commit ecdb3c8c79
1 changed files with 2 additions and 1 deletions

View File

@ -23,8 +23,9 @@ const form = document.getElementById('merge-form');
const calendarsData = []; const calendarsData = [];
for (let i = 0; i < calendarIndex; i++) { for (let i = 0; i < calendarIndex; i++) {
const prefix = document.getElementById(`prefix-${i}`).value; const prefix = document.getElementById(`prefix-${i}`).value;
const override = document.getElementById(`override-${i}`).checked;
const url = document.getElementById(`url-${i}`).value; const url = document.getElementById(`url-${i}`).value;
calendarsData.push({ prefix, url }); calendarsData.push({ prefix, override, url });
} }
fetch('/merge', { fetch('/merge', {
method: 'POST', method: 'POST',