diff --git a/misc/tableselect.js b/misc/tableselect.js index a50110e94ecb1c47ab52f70254cecf43d052bf83..1abda24d951767176f0e9e088b2a592d5458a123 100644 --- a/misc/tableselect.js +++ b/misc/tableselect.js @@ -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');