summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcatch2011-09-27 15:37:16 (GMT)
committercatch2011-09-27 15:37:16 (GMT)
commit33f12b5127c25870885660649cc99fd05204b0ca (patch)
tree2ceb5c593ee526e09aaa0e9e305869fb03822dc5
parent77bf30e447e0183bd42d50add80e71944472b11d (diff)
Issue #363354 by xjm, aspilicious, casey, Boobaa: Fixed Tableselect should only select enabled checkboxes.
-rw-r--r--misc/tableselect.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/tableselect.js b/misc/tableselect.js
index a50110e..1abda24 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');