Compare commits
No commits in common. "46604e08f622df7e3e5b62ef4ce8074cfc62283b" and "fcf626036ddb10472590ad39ac79e50780387e09" have entirely different histories.
46604e08f6
...
fcf626036d
|
@ -31,7 +31,6 @@
|
||||||
<form id="merge-form">
|
<form id="merge-form">
|
||||||
<div id="calendars">
|
<div id="calendars">
|
||||||
<div class="calendar">
|
<div class="calendar">
|
||||||
<input type="text" id="link-group-name-0" placeholder="Link Group Name">
|
|
||||||
<input type="text" id="prefix-0" placeholder="Prefix">
|
<input type="text" id="prefix-0" placeholder="Prefix">
|
||||||
<input type="checkbox" id="override-0">
|
<input type="checkbox" id="override-0">
|
||||||
<label for="override-0">Override</label>
|
<label for="override-0">Override</label>
|
||||||
|
|
|
@ -9,7 +9,6 @@ const form = document.getElementById('merge-form');
|
||||||
const newCalendar = document.createElement('div');
|
const newCalendar = document.createElement('div');
|
||||||
newCalendar.className = 'calendar';
|
newCalendar.className = 'calendar';
|
||||||
newCalendar.innerHTML = `
|
newCalendar.innerHTML = `
|
||||||
<input type="text" id="link-group-name-${calendarIndex}" placeholder="Link Group Name">
|
|
||||||
<input type="text" id="prefix-${calendarIndex}" placeholder="Prefix">
|
<input type="text" id="prefix-${calendarIndex}" placeholder="Prefix">
|
||||||
<input type="checkbox" id="override-${calendarIndex}">
|
<input type="checkbox" id="override-${calendarIndex}">
|
||||||
<label for="override-${calendarIndex}">Override</label>
|
<label for="override-${calendarIndex}">Override</label>
|
||||||
|
@ -23,7 +22,6 @@ const form = document.getElementById('merge-form');
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
const calendarsData = [];
|
const calendarsData = [];
|
||||||
for (let i = 0; i < calendarIndex; i++) {
|
for (let i = 0; i < calendarIndex; i++) {
|
||||||
const linkGroupName = document.getElementById(`link-group-name-${i}`).value;
|
|
||||||
const prefix = document.getElementById(`prefix-${i}`).value;
|
const prefix = document.getElementById(`prefix-${i}`).value;
|
||||||
const override = document.getElementById(`override-${i}`).checked;
|
const override = document.getElementById(`override-${i}`).checked;
|
||||||
const url = document.getElementById(`url-${i}`).value;
|
const url = document.getElementById(`url-${i}`).value;
|
||||||
|
@ -44,7 +42,7 @@ const form = document.getElementById('merge-form');
|
||||||
console.error(error);
|
console.error(error);
|
||||||
result.innerHTML = 'Error merging calendars';
|
result.innerHTML = 'Error merging calendars';
|
||||||
});
|
});
|
||||||
|
|
||||||
// Send the input data to the server
|
// Send the input data to the server
|
||||||
fetch('/add-links', {
|
fetch('/add-links', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
Loading…
Reference in New Issue