all repos — cameraman @ 3a770ca6153b7f66da3bdce12cae18c1bed29cfd

lil ui fix
BiRabittoh andronacomarco@gmail.com
Mon, 03 Jun 2024 16:17:58 +0200
commit

3a770ca6153b7f66da3bdce12cae18c1bed29cfd

parent

06f88241479fce982da0c92b260b8459fd6a7dbf

1 files changed, 1 insertions(+), 4 deletions(-)

jump to
M templates/index.htmltemplates/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);