From 583af81d3d23ab0e3692dd7bb4a36314deab5994 Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 16 Jun 2014 14:17:53 +0000 Subject: feature 2563: do not display all tags as checkboxes on search.php. Use jQuery Selectize instead. git-svn-id: http://piwigo.org/svn/trunk@28708 68402e56-0260-453c-a942-63ccdbb3a9ee --- search.php | 9 +-------- themes/default/template/search.tpl | 14 ++++++++++---- 2 files changed, 11 insertions(+), 12 deletions(-) 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)}
{'Search tags'|@translate} - {$TAG_SELECTION} + + +
-- cgit v1.2.3