diff options
author | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2016-01-12 01:01:59 +0100 |
---|---|---|
committer | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2016-01-12 01:01:59 +0100 |
commit | 4b6c722de7ab34d03f2f380b1432fc00f8e1cb08 (patch) | |
tree | 56f8273742b0edcd9633626d3a3dd111580b737d /templates | |
parent | 0c10c18928bd386d402cd8dd58c9561172c994ab (diff) | |
download | padlite-teams-4b6c722de7ab34d03f2f380b1432fc00f8e1cb08.tar.gz padlite-teams-4b6c722de7ab34d03f2f380b1432fc00f8e1cb08.tar.bz2 padlite-teams-4b6c722de7ab34d03f2f380b1432fc00f8e1cb08.zip |
templates: Javascript is required now
The collapsable panels are hidden by default and javascript is required now,
but padlite is unusable without javascript anyway. This removes the flashing
of the panels during page load.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/group.html | 5 | ||||
-rw-r--r-- | templates/index.html | 8 |
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 %} |