mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-23 23:35:00 +08:00
Improve input field for adding new team [SCI-6155]
This commit is contained in:
parent
2bda271615
commit
3d26da9e5e
1 changed files with 9 additions and 0 deletions
|
@ -44,6 +44,7 @@
|
|||
labelHTML: true,
|
||||
tagClass: 'users-dropdown-list',
|
||||
inputTagMode: true,
|
||||
selectKeys: [13, 32, 44, 188],
|
||||
customDropdownIcon: () => { return '<i class="fas fa-search right-icon"></i>'; },
|
||||
onChange: () => {
|
||||
let values = dropdownSelector.getValues(emailsInput);
|
||||
|
@ -57,6 +58,14 @@
|
|||
}
|
||||
});
|
||||
|
||||
modal.find('.search-field').focusout(function() {
|
||||
if ($(this).val()) {
|
||||
$(this).trigger(
|
||||
$.Event('keypress', { keyCode: 13 })
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
dropdownSelector.init('#role', {
|
||||
noEmptyOption: true,
|
||||
singleSelect: true,
|
||||
|
|
Loading…
Reference in a new issue