diff --git a/search.php b/search.php index 2846d52ed..247430fde 100644 --- a/search.php +++ b/search.php @@ -204,14 +204,7 @@ if (count($available_tags) > 0) { usort( $available_tags, 'tag_alpha_compare'); - $template->assign( - 'TAG_SELECTION', - get_html_tag_selection( - $available_tags, - 'tags', - isset($_POST['tags']) ? $_POST['tags'] : array() - ) - ); + $template->assign('TAGS', $available_tags); } // authors diff --git a/themes/default/template/search.tpl b/themes/default/template/search.tpl index 09257ef96..34b8f3625 100644 --- a/themes/default/template/search.tpl +++ b/themes/default/template/search.tpl @@ -8,7 +8,7 @@ {footer_script} jQuery(document).ready(function() { - jQuery("#authors").selectize({ + jQuery("#authors, #tags").selectize({ plugins: ['remove_button'] }); }); @@ -46,16 +46,22 @@ jQuery(document).ready(function() { -{if isset($TAG_SELECTION)} +{if isset($TAGS)}