Changeset 29614


Ignore:
Timestamp:
09/18/14 11:54:04 (5 years ago)
Author:
plg
Message:

bug fixed: adapt the maxOptions to each listbox to display all items

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/default/template/search.tpl

    r29432 r29614  
    99{footer_script} 
    1010jQuery(document).ready(function() { 
    11   jQuery("#authors, #tags, #categories").selectize({ 
    12     plugins: ['remove_button'] 
    13   }); 
     11  jQuery("#authors, #tags, #categories").each(function() { 
     12    jQuery(this).selectize({ 
     13      plugins: ['remove_button'], 
     14      maxOptions:jQuery(this).find("option").length 
     15    }); 
     16  }) 
    1417}); 
    1518{/footer_script} 
Note: See TracChangeset for help on using the changeset viewer.