2017: Update includes/program_js.html
authorrsiddharth <rsd@gnu.org>
Tue, 7 Mar 2017 04:30:29 +0000 (04:30 +0000)
committerrsiddharth <rsd@gnu.org>
Tue, 7 Mar 2017 04:30:44 +0000 (04:30 +0000)
2017/includes/program_js.html

index b17030eaa04bb78a78727121ead8dd0eca5f67e5..02e6ad57a2bd8874c24eda3cfb39b4358d2d6973 100755 (executable)
 <!-- end html templates -->
 
 <script>
- $('.collapse').removeClass('in');
-
  $(window).ready(function() {
+     $('.collapse').removeClass('in');
+     $('.program-session-room-details button').show();
+
      init_toggle_all();
 
      $('.session-desc')
  });
 
  function init_toggle_all(reinit=false) {
-     var id = '.program-session-details-toggle-all button';
+     var block = '.program-session-details-toggle-all';
      // on click init.
      if (!reinit)
          toggle_all_click_init();
 
      // positioning.
-     window.toggle_all_pos = $(id).offset();
+     window.toggle_all_pos = $(block).offset();
      position_toggle_all();
+     $(block).show();
  }
 
  function reinit_toggle_all() {