summaryrefslogtreecommitdiff
path: root/templates/apps/room/list.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/apps/room/list.html
parent9cfed215ee696efdb4ec4a7987910d6f5c9e416a (diff)
toggle open/close for accordions based on location.hash
Diffstat (limited to 'templates/apps/room/list.html')
-rw-r--r--templates/apps/room/list.html5
1 files changed, 2 insertions, 3 deletions
diff --git a/templates/apps/room/list.html b/templates/apps/room/list.html
index 4e83466..52263b7 100644
--- a/templates/apps/room/list.html
+++ b/templates/apps/room/list.html
@@ -3,7 +3,6 @@
{% load roomurl %}
{% load tagging_tags %}
{% block widgets %}
- $(".collapse").collapse({'parent': '#rooms'});
$(".occupation").click(function(e) {
$(this).find(".occupation-info").first().load("/api/room/"+$(this).parents('.accordion-body').attr('id')+"/occupation")
});
@@ -28,8 +27,8 @@
<div id="rooms" class="accordion">
{% for r in rooms %}
<div class="room accordion-group">
- <div class="accordion-heading"><a href="#{{r.id}}" class="accordion-toggle" data-toggle="collapse" data-parent="#rooms">{{r.name}}</a></div>
- <div id="{{r.id}}" class="accordion-body collapse in">
+ <div class="accordion-heading"><a href="#{{r.id}}" class="accordion-toggle" data-toggle="collapse" data-target="#{{r.id}}" data-parent="#rooms">{{r.name}}</a></div>
+ <div id="{{r.id}}" class="accordion-body collapse">
<div class="accordion-inner">
{% tags_for_object r as tags %}
<p><a target="_connect" href="{{r|roomurl}}">{{r|roomurl}}</a></p>