diff options
Diffstat (limited to 'themes')
-rw-r--r-- | themes/default/template/search.tpl | 17 | ||||
-rw-r--r-- | themes/default/theme.css | 1 |
2 files changed, 16 insertions, 2 deletions
diff --git a/themes/default/template/search.tpl b/themes/default/template/search.tpl index 56c142182..09257ef96 100644 --- a/themes/default/template/search.tpl +++ b/themes/default/template/search.tpl @@ -3,6 +3,17 @@ {include file='include/resize.inc.tpl'} *} +{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.dark.css"} + +{footer_script} +jQuery(document).ready(function() { + jQuery("#authors").selectize({ + plugins: ['remove_button'] + }); +}); +{/footer_script} + {if isset($MENUBAR)}{$MENUBAR}{/if} <div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}"> @@ -33,7 +44,11 @@ </label></li> </ul> <label>{'Search for Author'|@translate} - <input type="text" name="search_author" size="35"> + <select id="authors" placeholder="{'Type in a search term'|translate}" name="authors[]" multiple style="width:500px;"> +{foreach from=$AUTHORS item=author} + <option value="{$author.author|strip_tags:false|escape:html}">{$author.author|strip_tags:false} ({'%d photos'|translate:$author.counter})</option> +{/foreach} + </select> </label> </fieldset> diff --git a/themes/default/theme.css b/themes/default/theme.css index 08114a392..bbf5e4091 100644 --- a/themes/default/theme.css +++ b/themes/default/theme.css @@ -507,7 +507,6 @@ SELECT.categoryList { FIELDSET { padding: 1em; margin: 1em; - overflow: hidden; /* <- makes Opera happy */ } .filter UL, |