mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
N°2847 - Quick create: Add config. parameter for max. autocomplete results ('quick_create.max_autocomplete_results')
This commit is contained in:
@@ -26,7 +26,7 @@ $(function()
|
||||
// default options
|
||||
options:
|
||||
{
|
||||
|
||||
max_autocomplete_results: 10,
|
||||
},
|
||||
css_classes:
|
||||
{
|
||||
@@ -58,7 +58,6 @@ $(function()
|
||||
{
|
||||
const me = this;
|
||||
|
||||
// TODO 2.8.0 Use config parameter for maxOptions value
|
||||
// Instantiate selectize.js on input
|
||||
this.element.find(this.js_selectors.input).selectize({
|
||||
dropdownParent: this.js_selectors.select_dropdown_parent,
|
||||
@@ -66,7 +65,7 @@ $(function()
|
||||
dropdownContentClass: 'ibo-quick-create--compartment-results--element',
|
||||
openOnFocus: false,
|
||||
maxItems: 1,
|
||||
maxOptions: 10,
|
||||
maxOptions: this.options.max_autocomplete_results,
|
||||
});
|
||||
|
||||
// Remove some inline styling from the widget
|
||||
|
||||
Reference in New Issue
Block a user