Skip to content
Snippets Groups Projects
Commit 5c17c321 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent 172a4cc2
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment