Apply select2 to model selection

This commit is contained in:
Cohee 2024-06-28 19:13:46 +03:00
parent 4e33253a91
commit cc9eca8427
1 changed files with 6 additions and 0 deletions

View File

@ -603,6 +603,12 @@ jQuery(function () {
width: '100%',
templateResult: getAphroditeModelTemplate,
});
$('#featherless_model').select2({
placeholder: 'Select a model',
searchInputPlaceholder: 'Search models...',
searchInputCssClass: 'text_pole',
width: '100%',
});
providersSelect.select2({
sorter: data => data.sort((a, b) => a.text.localeCompare(b.text)),
placeholder: 'Select providers. No selection = all providers.',