summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/group.html5
-rw-r--r--templates/index.html8
2 files changed, 2 insertions, 11 deletions
diff --git a/templates/group.html b/templates/group.html
index ec61426..7399cfd 100644
--- a/templates/group.html
+++ b/templates/group.html
@@ -117,7 +117,7 @@
</h3>
</div>
- <div id="collapseOperations" class="panel-collapse collapse in">
+ <div id="collapseOperations" class="panel-collapse collapse">
<div class="panel-body">
<p class="col-lg-offset-2 col-lg-8">
<a href="{{ url_for('group_change', group_name=group.name) }}" class="btn btn-block btn-default">Change this group</a>
@@ -129,9 +129,6 @@
</div>
</div>
</div>
- <script type="text/javascript">
- $('#collapseOperations').collapse('hide');
- </script>
{% endif %}
{% else %}{# if not membership.active #}
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 %}