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 => {