aboutsummaryrefslogtreecommitdiffstats
path: root/themes/default/template/search.tpl
diff options
context:
space:
mode:
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}