Commit 37703530 authored by webchick's avatar webchick

Issue #1995058 by TravisCarden, acbramley, jhedstrom: Tableselect "select all"...

Issue #1995058 by TravisCarden, acbramley, jhedstrom: Tableselect "select all" checkbox should be checked on page load if all checkboxes are ticked
parent 9682507e
......@@ -60,6 +60,10 @@
// Keep track of the last checked checkbox.
lastChecked = e.target;
});
// If all checkboxes are checked on page load, make sure the select-all one
// is checked too, otherwise keep unchecked.
updateSelectAll((checkboxes.length === checkboxes.filter(':checked').length));
};
Drupal.tableSelectRange = function (from, to, state) {
......
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