summaryrefslogtreecommitdiffstats
path: root/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html8
1 files changed, 1 insertions, 7 deletions
diff --git a/templates/index.html b/templates/index.html
index 74098fe..932c83c 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -29,7 +29,7 @@
</h3>
</div>
- <div id="collapseCreate" class="panel-collapse collapse in">
+ <div id="collapseCreate" class="panel-collapse collapse {% if create_form.errors %}in{% endif %}">
<div class="panel-body">
<form class="form-horizontal" role="form" method="POST">
{% for field in create_form %}
@@ -46,10 +46,4 @@
</div>
</div>
</div>
-
-{% if not create_form.errors %}
-<script type="text/javascript">
- $('#collapseCreate').collapse('hide');
-</script>
-{% endif %}
{% endblock %}