summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-09-30 14:40:42 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2011-09-30 14:40:42 -0700
commite3f3105e37350249b5b2aef72ab0c89c69acfbe4 (patch)
tree2cb60366fa821f474f1f3f3ed26bf28591191fa3 /misc
parent3e9b237bdc1243b465e45e12a0e1573ccd00135b (diff)
downloadbrdo-e3f3105e37350249b5b2aef72ab0c89c69acfbe4.tar.gz
brdo-e3f3105e37350249b5b2aef72ab0c89c69acfbe4.tar.bz2
Issue #363354 by xjm, aspilicious, casey, Boobaa: Fixed Tableselect should only select enabled checkboxes.
Diffstat (limited to 'misc')
-rw-r--r--misc/tableselect.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/tableselect.js b/misc/tableselect.js
index a50110e94..1abda24d9 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');