Skip to content

Commit

Permalink
b/278473217 Exclude disabled items from selection (#71)
Browse files Browse the repository at this point in the history
Fix "select all" checkbox to ignore disabled items
  • Loading branch information
jpassing committed Apr 17, 2023
1 parent d6eab1e commit 784c285
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/src/main/resources/META-INF/resources/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ <h2 class="mdl-card__title-text">Audit and review just-in-time access</h2>
const checkAllCheckbox = $(`${selector} .checkall`)
checkAllCheckbox.change(() => {

$(`${selector} .mdl-checkbox__input`).each((index, element) => {
$(`${selector} .mdl-checkbox__input`).not(':disabled').each((index, element) => {
const checkbox = element.parentElement.MaterialCheckbox;

if (checkAllCheckbox.children("input").is(":checked")) {
Expand Down

0 comments on commit 784c285

Please sign in to comment.