summaryrefslogtreecommitdiff
path: root/templates/base.html
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2012-10-08 09:55:31 +0200
committerLeif Johansson <leifj@sunet.se>2012-10-08 09:55:31 +0200
commite5e29806cf16d3dff7cb74f9e1acd4159570d4c9 (patch)
tree251dbdd189d08ddd15ca15c2f0c84c5c15caad38 /templates/base.html
parent9cfed215ee696efdb4ec4a7987910d6f5c9e416a (diff)
toggle open/close for accordions based on location.hash
Diffstat (limited to 'templates/base.html')
-rw-r--r--templates/base.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
index 4bd9d80..5353fdd 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -106,5 +106,10 @@
</div>
</div>
</div>
+ <script type="text/javascript">
+ $(function() {
+ location.hash && $(location.hash + '.collapse').collapse('show');
+ });
+ </script>
</body>
</html>