| 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 |
|