feature 3094: redesign on search form, use selectize for categories

git-svn-id: http://piwigo.org/svn/trunk@28710 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2014-06-17 11:17:34 +00:00
parent 6f8caf22ba
commit f894f1208c
2 changed files with 3 additions and 5 deletions
+1 -2
View File
@@ -247,8 +247,7 @@ SELECT id,name,global_rank,uppercats
'WHERE'
).'
;';
display_select_cat_wrapper($query, array(), 'category_options', false);
display_select_cat_wrapper($query, array(), 'category_options', true);
// include menubar
$themeconf = $template->get_template_vars('themeconf');
+2 -3
View File
@@ -8,7 +8,7 @@
{footer_script}
jQuery(document).ready(function() {
jQuery("#authors, #tags").selectize({
jQuery("#authors, #tags, #categories").selectize({
plugins: ['remove_button']
});
});
@@ -128,10 +128,9 @@ jQuery(document).ready(function() {
<fieldset>
<legend>{'Search in albums'|@translate}</legend>
<p>
<select class="categoryList" name="cat[]" multiple="multiple" size="15">
<select id="categories" name="cat[]" multiple>
{html_options options=$category_options selected=$category_options_selected}
</select>
<br>
<label><input type="checkbox" name="subcats-included" value="1" checked="checked">{'Search in sub-albums'|@translate}</label>
</p>
</fieldset>