]> git.xonotic.org Git - xonotic/xonstat.git/commitdiff
Prevent rollup animation from being seen on game info page.
authorAnt Zucaro <azucaro@gmail.com>
Thu, 3 May 2012 09:59:26 +0000 (05:59 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Thu, 3 May 2012 09:59:26 +0000 (05:59 -0400)
xonstat/templates/game_info.mako

index 4d16a920cf75fba6223e70004c5db0903a5aaba5..67446bc079a9705d6179aa92bc754d0b7e6e905c 100755 (executable)
@@ -11,7 +11,10 @@ ${nav.nav('games')}
       <script src="/static/js/jquery-1.7.1.min.js"></script>
       <script src="/static/js/bootstrap-collapse.min.js"></script>
       <script>
-        $(".collapse").collapse()
+        $(".collapse").collapse();
+
+        // show accordion only when loaded to prevent rollup from being seen
+        $("#acc-accordion").css('display', '');
       </script>
 </%block>
 
@@ -47,7 +50,7 @@ Game Information
 <div class="row">
   <div class="span12">
     <h3>Accuracy Information</h3>
-    <div class="accordion" id="acc-accordion">
+    <div class="accordion" id="acc-accordion" style="display:none;">
     % for pgstat in pgstats:
     % if pgstat.player_game_stat_id in pwstats:
       <div class="accordion-group">