From 1280d805d6f6b90a6b71941dcfbb3e986a324050 Mon Sep 17 00:00:00 2001 From: csd4ni3l Date: Sat, 25 Oct 2025 14:55:33 +0200 Subject: [PATCH] make submit button not submit if comment is not given --- templates/index.jinja2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/index.jinja2 b/templates/index.jinja2 index 36a9de3..415b394 100644 --- a/templates/index.jinja2 +++ b/templates/index.jinja2 @@ -62,7 +62,7 @@ @@ -95,6 +95,7 @@ document.getElementById('modal-form').addEventListener('submit', function(e) { method: 'POST', body: formData }).then(response => { + bootstrap.Modal.getInstance(document.getElementById('createPostModal')).hide(); location.reload(); }) .catch(error => {