Changeset 28710


Ignore:
Timestamp:
Jun 17, 2014, 1:17:34 PM (6 years ago)
Author:
plg
Message:

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/search.php

    r28709 r28710  
    248248  ).'
    249249;';
    250 display_select_cat_wrapper($query, array(), 'category_options', false);
    251 
     250display_select_cat_wrapper($query, array(), 'category_options', true);
    252251
    253252// include menubar
  • trunk/themes/default/template/search.tpl

    r28709 r28710  
    99{footer_script}
    1010jQuery(document).ready(function() {
    11   jQuery("#authors, #tags").selectize({
     11  jQuery("#authors, #tags, #categories").selectize({
    1212    plugins: ['remove_button']
    1313  });
     
    129129  <legend>{'Search in albums'|@translate}</legend>
    130130  <p>
    131     <select class="categoryList" name="cat[]" multiple="multiple" size="15">
     131    <select id="categories" name="cat[]" multiple>
    132132      {html_options options=$category_options selected=$category_options_selected}
    133133    </select>
    134     <br>
    135134    <label><input type="checkbox" name="subcats-included" value="1" checked="checked">{'Search in sub-albums'|@translate}</label>
    136135  </p>
Note: See TracChangeset for help on using the changeset viewer.