forked from ryanmwangi/CalMerger
add event listener for submitting overide checkbox
This commit is contained in:
parent
73781d7570
commit
ecdb3c8c79
|
@ -23,8 +23,9 @@ const form = document.getElementById('merge-form');
|
|||
const calendarsData = [];
|
||||
for (let i = 0; i < calendarIndex; i++) {
|
||||
const prefix = document.getElementById(`prefix-${i}`).value;
|
||||
const override = document.getElementById(`override-${i}`).checked;
|
||||
const url = document.getElementById(`url-${i}`).value;
|
||||
calendarsData.push({ prefix, url });
|
||||
calendarsData.push({ prefix, override, url });
|
||||
}
|
||||
fetch('/merge', {
|
||||
method: 'POST',
|
||||
|
|
Loading…
Reference in New Issue