Commit 5c17c321 authored by Dries's avatar Dries

- Patch #1684816 by nod_: JSHint tableselect.js.

parent 172a4cc2
......@@ -75,9 +75,7 @@ Drupal.tableSelectRange = function (from, to, state) {
$i = $(i);
// Either add or remove the selected class based on the state of the target checkbox.
$i.toggleClass('selected', state);
$i.find('input:checkbox').each(function () {
this.checked = state;
$i.find('input:checkbox').attr('checked', state);
if (to.nodeType) {
// If we are at the end of the range, stop.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment