aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/js
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2014-09-18 09:07:19 +0000
committermistic100 <mistic@piwigo.org>2014-09-18 09:07:19 +0000
commit392c1e9c379c84192d95df429bbdda0e41996567 (patch)
treea696499570d77bb57d8a508c38c859ff1d852572 /admin/themes/default/js
parent6eac7dad94c0afca70fec7b592c9dcba34ed466b (diff)
dynamically set selectize maxOptions to accommodate very long lists
git-svn-id: http://piwigo.org/svn/trunk@29613 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/themes/default/js')
-rw-r--r--admin/themes/default/js/LocalStorageCache.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/admin/themes/default/js/LocalStorageCache.js b/admin/themes/default/js/LocalStorageCache.js
index 4fb1d2860..e585e2acd 100644
--- a/admin/themes/default/js/LocalStorageCache.js
+++ b/admin/themes/default/js/LocalStorageCache.js
@@ -107,6 +107,8 @@
filtered = data;
}
+ this.selectize.settings.maxOptions = filtered.length + 100;
+
// active creation mode
if (this.hasAttribute('data-create')) {
options.create = true;