From b7ba4fb79889d13269aae04d094d84f41fd9ff21 Mon Sep 17 00:00:00 2001 From: Rassmagin Alexander Date: Tue, 17 Dec 2024 18:03:17 +0300 Subject: [PATCH] testing categoriesinput --- public/src/modules/handleEventsActions.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/public/src/modules/handleEventsActions.js b/public/src/modules/handleEventsActions.js index 6a31602..f67881c 100644 --- a/public/src/modules/handleEventsActions.js +++ b/public/src/modules/handleEventsActions.js @@ -156,7 +156,13 @@ export async function handleCreateEventSubmit(event, pageToCome, navigate) { const tag = Array.from(document.getElementById('eventTagEntry').value.split(' '), (tag) => removeDangerous(tag)); const dateStart = removeDangerous(document.getElementById('eventBeginEntry').value) + ':00Z'; const dateEnd = removeDangerous(document.getElementById('eventEndEntry').value) + ':00Z'; - const categoryId = Number(removeDangerous(document.getElementById('categoriesInput').id)); + console.log(document.getElementById('categoriesInput')); + console.log(document.getElementById('categoriesInput').id); + console.log(document.getElementById('categoriesInput').value); + + let categoryId = Number(removeDangerous(document.getElementById('categoriesInput').id)); + console.log(categoryId); + categoryId = 1; const image = document.getElementById('imageInput').files[0]; const latitude = removeDangerous(document.getElementById('latitude').value);