lil ui fix
BiRabittoh andronacomarco@gmail.com
Mon, 03 Jun 2024 16:17:58 +0200
1 files changed,
1 insertions(+),
4 deletions(-)
jump to
M
templates/index.html
→
templates/index.html
@@ -312,9 +312,7 @@ body: JSON.stringify(updatedData)
}) .then(response => { if (!response.ok) { - console.error('Error:', response.status); - alert('Controlla che i campi siano validi.'); - return; + throw new Error(response.status) } if (isNew) { cancelNewOccurrence();@@ -334,7 +332,6 @@ newRow.id = 'new-occurrence';
newRow.innerHTML = createInputFields('0', '', '', '', '', true, false, true); hideAddButton(); - // updateRowDisplay(); } function hideAddButton() { addButton.classList.add(hiddenClass);