From b544ee394890501290a84d48ee62df72f94d5009 Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 3 May 2016 15:02:29 +0200 Subject: fixes #440, update search page on SmartPocket theme ... to include new features of Piwigo 2.7 and 2.8 --- themes/smartpocket/template/search.tpl | 123 +++++++++++++++++++++++---------- 1 file changed, 85 insertions(+), 38 deletions(-) diff --git a/themes/smartpocket/template/search.tpl b/themes/smartpocket/template/search.tpl index 7c648ab1a..33c3eabb0 100644 --- a/themes/smartpocket/template/search.tpl +++ b/themes/smartpocket/template/search.tpl @@ -1,3 +1,28 @@ +{combine_script id='jquery.selectize' load='footer' path='themes/default/js/plugins/selectize.min.js'} +{combine_css id='jquery.selectize' path="themes/default/js/plugins/selectize.{$themeconf.colorscheme}.css"} + +{footer_script} +jQuery(document).ready(function() { + jQuery("#authors, #tags, #categories").each(function() { + jQuery(this).selectize({ + plugins: ['remove_button'], + maxOptions:jQuery(this).find("option").length + }); + }) +}); +{/footer_script} + +{html_style} +.ui-checkbox, .ui-radio, .ui-btn-text { + z-index:0; +} + +.form-actions { + margin-top:3em; + margin-bottom:3em; +} +{/html_style} + {include file='infos_errors.tpl'}