summaryrefslogtreecommitdiff
path: root/misc/tableselect.js
diff options
context:
space:
mode:
Diffstat (limited to 'misc/tableselect.js')
-rw-r--r--misc/tableselect.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/tableselect.js b/misc/tableselect.js
index f201a88b0..60b492197 100644
--- a/misc/tableselect.js
+++ b/misc/tableselect.js
@@ -70,7 +70,7 @@ Drupal.tableSelectRange = function (from, to, state) {
}
// Either add or remove the selected class based on the state of the target checkbox.
- $(i)[ state ? 'addClass' : 'removeClass' ]('selected');
+ $(i).toggleClass('selected', state);
$('input:checkbox', i).each(function () {
this.checked = state;
});