| 1 |
|
// $Id: delete_all.js,v 1.1.2.2 2007/12/26 23:20:58 douggreen Exp $ |
| 2 |
|
|
| 3 |
|
if (Drupal.jsEnabled) { |
| 4 |
|
$(document).ready(function () { |
| 5 |
|
function check_buttons() { |
| 6 |
|
if ($('#delete-all-content .delete-all').is(':checked')) { |
| 7 |
|
$('#delete-all-content .form-checkboxes input').attr('checked', 'checked').attr('disabled', 'disabled'); |
| 8 |
|
} |
| 9 |
|
else { |
| 10 |
|
$('#delete-all-content .form-checkboxes input').removeAttr('checked').removeAttr('disabled'); |
| 11 |
|
if ($('#delete-all-content fieldset').is('.collapsed')) { |
| 12 |
|
Drupal.toggleFieldset($('#delete-all-content fieldset')); |
| 13 |
|
} |
| 14 |
|
} |
| 15 |
|
} |
| 16 |
|
|
| 17 |
|
$('#delete-all-content .delete-all').click(function () { |
| 18 |
|
check_buttons(); |
| 19 |
|
}); |
| 20 |
|
|
| 21 |
|
check_buttons(); |
| 22 |
|
}); |
| 23 |
|
} |