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'}