dynamically set selectize maxOptions to accommodate very long lists

git-svn-id: http://piwigo.org/svn/trunk@29613 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
mistic100 2014-09-18 09:07:19 +00:00
commit 392c1e9c37

View file

@ -107,6 +107,8 @@
filtered = data;
}
this.selectize.settings.maxOptions = filtered.length + 100;
// active creation mode
if (this.hasAttribute('data-create')) {
options.create = true;