summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/index.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html
index f5cf4d8..c6583a1 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -39,7 +39,9 @@
</div>
</div>
</div>
+{% if not create_form.errors %}
<script type="text/javascript">
$('#collapseCreate').collapse('hide');
</script>
+{% endif %}
{% endblock %}