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

Issue #363354 by xjm, aspilicious, casey, Boobaa: Fixed Tableselect should...

Issue #363354 by xjm, aspilicious, casey, Boobaa: Fixed Tableselect should only select enabled checkboxes.
parent 3e9b237b
No related branches found
No related tags found
No related merge requests found
......@@ -36,8 +36,8 @@ Drupal.tableSelect = function () {
}
});
// For each of the checkboxes within the table.
checkboxes = $('td input:checkbox', table).click(function (e) {
// For each of the checkboxes within the table that are not disabled.
checkboxes = $('td input:checkbox:enabled', table).click(function (e) {
// Either add or remove the selected class based on the state of the check all checkbox.
$(this).parents('tr:first')[ this.checked ? 'addClass' : 'removeClass' ]('selected');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment