Skip to content
Snippets Groups Projects
Commit 63632564 authored by Angie Byron's avatar Angie Byron
Browse files

#308262 by boombatower, flobruit, and Damien Tournoud: Clean-up of simpletest.js.

parent 568034d9
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
// $Id$
/**
* Add the cool table collapsing on the testing overview page.
*/
Drupal.behaviors.simpleTestMenuCollapse = function() {
// Adds expand-collapse functionality.
$('div.simpletest-image').click(function() {
......@@ -27,6 +30,11 @@ Drupal.behaviors.simpleTestMenuCollapse = function() {
}
});
}
/**
* Select/deselect all the inner checkboxes when the outer checkboxes are
* selected/deselected.
*/
Drupal.behaviors.simpleTestSelectAll = function() {
$('td.simpletest-select-all').each(function() {
var checkboxes = Drupal.settings.simpleTest['simpletest-test-group-'+ $(this).attr('id')].testNames, totalCheckboxes = 0,
......@@ -49,7 +57,7 @@ Drupal.behaviors.simpleTestSelectAll = function() {
checkbox.attr('checked', 'checked');
}
else {
checkbox.attr('checked', '');
checkbox.removeAttr('checked');
}
}).attr('checked') == 'checked') {
totalCheckboxes++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment