mirror of https://git.48k.eu/ogcp
js: uncheck parent folder when a child folder is unchecked
Improve selection logic to deselect the checkbox of a folder's parent when the checkbox is unchecked. Based on work from Javier Hernandez.master
parent
5533141ae9
commit
0153b2b13f
|
@ -388,7 +388,7 @@ function checkFolderParent() {
|
|||
const folder = $('input:checkbox[form|="scopesForm"][name="folder"]')
|
||||
folder.on('change', function() {
|
||||
const folder_parent = $('#' + $.escapeSelector(this.dataset.parentInput));
|
||||
folder_parent.prop('checked', true);
|
||||
folder_parent.prop('checked', this.checked);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue