From 392c1e9c379c84192d95df429bbdda0e41996567 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Thu, 18 Sep 2014 09:07:19 +0000 Subject: dynamically set selectize maxOptions to accommodate very long lists git-svn-id: http://piwigo.org/svn/trunk@29613 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/themes/default/js/LocalStorageCache.js | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3