mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-18 15:59:39 +08:00
Add "indetermined" state for the "select all" checkbox in the Share Inventory modal
This commit is contained in:
parent
a472eda699
commit
4e4a2cf5ad
1 changed files with 2 additions and 0 deletions
|
|
@ -124,6 +124,8 @@
|
|||
});
|
||||
|
||||
sharedCBs.change(function() {
|
||||
var selectedTeams = form.find('.teams-list .sci-checkbox:checked').length;
|
||||
form.find('#select_all_teams').prop('indeterminate', selectedTeams > 0);
|
||||
$('#editable_' + this.value).toggleClass('hidden', !this.checked)
|
||||
.attr('disabled', !this.checked);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue