/[drupal]/contributions/modules/api/api.js
ViewVC logotype

Contents of /contributions/modules/api/api.js

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


Revision 1.1 - (show annotations) (download) (as text)
Mon Jan 26 19:24:35 2009 UTC (10 months ago) by drumm
Branch: MAIN
CVS Tags: DRUPAL-6--1-0, DRUPAL-6--1-1, HEAD
Branch point for: DRUPAL-6--1
File MIME type: text/javascript
expandable regions for functions called
1 Drupal.behaviors.apiExpandable = function() {
2 $('div.api-expandable:not(apiExpandableProcessed)').each(function() {
3 $(this).addClass('apiExpandableProcessed')
4 .children('div.prompt').find('a.show-content').click(function() {
5 $(this).parents('div.api-expandable').eq(0)
6 .children('.prompt').hide().end()
7 .children('.content').show();
8 return false;
9 }).end().end()
10 .children('div.content').find('a.hide-content').click(function() {
11 $(this).parents('div.api-expandable').eq(0)
12 .children('.prompt').show().end()
13 .children('.content').hide();
14 return false;
15 });
16 });
17 };

  ViewVC Help
Powered by ViewVC 1.1.2