mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-03 10:24:30 +08:00
Fix checkbox project select [SCI-8584]
This commit is contained in:
parent
3978d9efef
commit
9278e887d6
1 changed files with 4 additions and 2 deletions
|
@ -136,7 +136,9 @@ var dropdownSelector = (function() {
|
|||
if (selector.data('select-by-group')) {
|
||||
$.each(container.find('.dropdown-group'), function(gi, group) {
|
||||
if ($(group).find('.dropdown-option').length === $(group).find('.dropdown-option.select').length) {
|
||||
$(group).addClass('select');
|
||||
$(group).find('.group-name').addClass('select');
|
||||
} else {
|
||||
$(group).find('.group-name').removeClass('select');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -619,7 +621,7 @@ var dropdownSelector = (function() {
|
|||
// Disable group select to single select
|
||||
if (selector.data('config').singleSelect) return;
|
||||
|
||||
if (groupContainer.toggleClass('select').hasClass('select')) {
|
||||
if ($(this).toggleClass('select').hasClass('select')) {
|
||||
groupContainer.find('.dropdown-option').addClass('select');
|
||||
} else {
|
||||
groupContainer.find('.dropdown-option').removeClass('select');
|
||||
|
|
Loading…
Add table
Reference in a new issue