Skip to content
Snippets Groups Projects
Commit 8a3a8cd4 authored by Stephen Mustgrave's avatar Stephen Mustgrave
Browse files

Issue #3265558 by shalinigaur, DevFadi: 'Select None' option in filter...

Issue #3265558 by shalinigaur, DevFadi: 'Select None' option in filter dropdown is not showing when we select all options manually
parent 241caa9c
No related branches found
No related tags found
1 merge request!20Issue #3266858: Allow not automatically opening collapsed filter
Pipeline #143315 passed with warnings
......@@ -66,6 +66,15 @@
newLink.insertBefore($(this));
// Show select all/none when single checkbox is checked/unchecked
$('input:checkbox', this).click(function() {
if($(this).prop("checked") == true) {
newLink.text(selNone);
} else if($(this).prop("checked") == false) {
newLink.text(selAll);
}
});
// If all checkboxes are already checked by default then switch to Select None.
if ($('input:checkbox:checked', this).length == $('input:checkbox', this).length) {
newLink.text(selNone);
......
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