]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Customize accordion behavior.
authorAnt Zucaro <azucaro@gmail.com>
Sat, 11 Apr 2015 00:26:15 +0000 (20:26 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Sat, 11 Apr 2015 00:26:15 +0000 (20:26 -0400)
xonstat/templates/game_info.mako

index 60c5614017f11e5fc72fee2fcff9292b19799b55..7cda70ff4bb08acef43b4893ccea7dc90573e563 100644 (file)
   <link href="/static/css/sprites.css" rel="stylesheet">
 </%block>
 
-<%block name="js">
-  ${parent.js()}
+<%block name="foundation">
   <script>
-  $(".collapse").collapse();
-
-  // show accordion only when loaded to prevent rollup from being seen
-  $("#acc-accordion").css('display', '');
+  $(document).foundation({
+      accordion: {
+        multi_expand: true,
+      }
+    });
   </script>
 </%block>