Issue #363354 by xjm, aspilicious, casey, Boobaa: Fixed Tableselect should only select enabled checkboxes.

8.0.x
catch 2011-09-28 00:37:16 +09:00
parent 77bf30e447
commit 33f12b5127
1 changed files with 2 additions and 2 deletions

View File

@ -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');