From d16180d73196546d4597034186d8be9eeef36c76 Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 18 Sep 2014 09:54:04 +0000 Subject: 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 --- themes/default/template/search.tpl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'themes') 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} -- cgit v1.2.3