[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/themes/rootcandy/ -> compact-icon.js (source)

   1  // $Id: compact-icon.js,v 1.1.2.1 2009/04/19 08:25:52 sign Exp $
   2  
   3  $(document).ready(function(){
   4     //Close all menus on page load
   5     $('div.admin-panel .body').toggle();
   6     $('div.admin-panel').addClass('collapsed');
   7  
   8     //Display menu dropdown on click
   9     $('div.admin-panel h3').click(function(){
  10      //Reset and close all menus in column
  11      $(this).parent().parent().children().each(function(){
  12          $(this).addClass('collapsed');
  13          $(this).find('.body').hide();
  14      })
  15      //Display the selected menu
  16      $(this).parent().removeClass('collapsed');
  17      $(this).next().toggle();
  18     });
  19  
  20  });


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7