/[drupal]/contributions/modules/TaxTreeNodes/taxtreenodes.js
ViewVC logotype

Contents of /contributions/modules/TaxTreeNodes/taxtreenodes.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Fri Dec 7 09:24:53 2007 UTC (23 months, 2 weeks ago) by attiks
Branch: MAIN
CVS Tags: DRUPAL-5--1-1, DRUPAL-5--1-0, HEAD
Branch point for: DRUPAL-5
File MIME type: text/javascript
Initial release
1 /**
2 * TaxTreeNodes collapse/expand
3 *
4 */
5
6 Drupal.taxtreenodestoggle = function () {
7 // attach the onclick handlers to show comments
8 $('a.taxtreenodestoggle').click(function()
9 {
10 $(this).next('ul').toggle();
11 $(this).next('ul').next('ul').toggle();
12 return false;
13 }
14 );
15
16 // hide all comments on page display
17 $('a.taxtreenodestoggle').each(function() {
18 $(this).next('ul').toggle();
19 $(this).next('ul').next('ul').toggle();
20 });
21 }
22
23 // Global killswitch
24 if (Drupal.jsEnabled) {
25 $(document).ready(Drupal.taxtreenodestoggle);
26 }
27

  ViewVC Help
Powered by ViewVC 1.1.2