aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2014-09-18 09:54:04 +0000
committerplegall <plg@piwigo.org>2014-09-18 09:54:04 +0000
commitd16180d73196546d4597034186d8be9eeef36c76 (patch)
treef0616eafb852719ec0c999fd335f20a39ae4a32c
parent392c1e9c379c84192d95df429bbdda0e41996567 (diff)
bug fixed: adapt the maxOptions to each listbox to display all items
git-svn-id: http://piwigo.org/svn/trunk@29614 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--themes/default/template/search.tpl9
1 files changed, 6 insertions, 3 deletions
diff --git a/themes/default/template/search.tpl b/themes/default/template/search.tpl
index 74ed171e4..1a12e9832 100644
--- a/themes/default/template/search.tpl
+++ b/themes/default/template/search.tpl
@@ -8,9 +8,12 @@
{footer_script}
jQuery(document).ready(function() {
- jQuery("#authors, #tags, #categories").selectize({
- plugins: ['remove_button']
- });
+ jQuery("#authors, #tags, #categories").each(function() {
+ jQuery(this).selectize({
+ plugins: ['remove_button'],
+ maxOptions:jQuery(this).find("option").length
+ });
+ })
});
{/footer_script}