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

Contents of /contributions/modules/upgrade_status/upgrade_status.js

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


Revision 1.2 - (show annotations) (download) (as text)
Mon Jun 2 01:09:16 2008 UTC (17 months, 3 weeks ago) by sun
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +5 -4 lines
File MIME type: text/javascript
#265419 by sun: Fixed clicking on project title/link toggles collapse status.
1 // $Id: upgrade_status.js,v 1.1 2008/05/31 03:36:02 sun Exp $
2
3 /**
4 * Attach collapsible behaviour.
5 */
6 Drupal.upgradeStatusAttach = function() {
7 $('table.upgrade-status .collapse-icon:not(.processed)').each(function() {
8 $(this).addClass('upgrade-status-processed')
9 .click(function() {
10 this.src = (this.src.match(/collapsed.png$/) ? this.src.replace(/collapsed.png$/, 'expanded.png') : this.src.replace(/expanded.png$/, 'collapsed.png'));
11 $('.details-wrapper', this.parentNode).slideToggle('fast');
12 })
13 .parent().children('.details-wrapper').hide();
14 });
15 };
16
17 // Global killswitch.
18 if (Drupal.jsEnabled) {
19 $(document).ready(Drupal.upgradeStatusAttach);
20 }
21

  ViewVC Help
Powered by ViewVC 1.1.2