Skip to content
Snippets Groups Projects
Commit 1673ef65 authored by Damian Lee's avatar Damian Lee Committed by Tim Plunkett
Browse files

Issue #1442092 by damiankloip, yannickoo: Added 'Select all' checkbox should...

Issue #1442092 by damiankloip, yannickoo: Added 'Select all' checkbox should be unticked when another checkbox is unticked.
parent 82bb61d6
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
......@@ -776,6 +776,14 @@ Drupal.behaviors.viewsFilterConfigSelectAll.attach = function(context) {
$(this).attr('checked', checked);
});
});
// Uncheck the select all checkbox if any of the others are unchecked.
$('#views-ui-config-item-form div.form-type-checkbox').not($('.form-item-options-value-all')).find('input[type=checkbox]').each(function() {
$(this).click(function() {
if ($(this).is('checked') == 0) {
$('#edit-options-value-all').removeAttr('checked');
}
});
});
};
/**
......
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