Changeset 29633


Ignore:
Timestamp:
09/18/14 16:54:25 (5 years ago)
Author:
mistic100
Message:

use selectize

Location:
extensions/EasyCaptcha/template
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/EasyCaptcha/template/admin.tpl

    r28345 r29633  
    11{combine_css path=$EASYCAPTCHA_PATH|cat:'template/style.css'} 
    22 
    3 {combine_css path='themes/default/js/plugins/chosen.css'} 
    4 {combine_script id='jquery.chosen' load='footer' path='themes/default/js/plugins/chosen.jquery.min.js'} 
     3{combine_css id='jquery.selectize' path="themes/default/js/plugins/selectize.{$themeconf.colorscheme}.css"} 
     4{combine_script id='jquery.selectize' load='footer' path='themes/default/js/plugins/selectize.min.js'} 
    55 
    66{combine_css path=$EASYCAPTCHA_PATH|cat:'template/bgrins-spectrum/spectrum.css'} 
     
    1515{footer_script} 
    1616// multiselect 
    17 $("select").css({ 
    18     width: 300 
    19 }).chosen({ 
    20     disable_search:true, 
    21     placeholder_text_multiple: '{'Nowhere'|translate}' 
     17$('[name="activate_on[]"]').selectize({ 
     18  plugins: ['remove_button'] 
    2219}); 
    2320 
     
    124121    <li> 
    125122      <b>{'Activate on'|translate}</b> 
    126       <select name="activate_on[]" multiple> 
     123      <select name="activate_on[]" multiple placeholder="{'Nowhere'|translate}"> 
    127124        <option value="picture" {if $easycaptcha.activate_on.picture}selected{/if}>{'Picture comments'|translate}</option> 
    128125        {if $loaded.category}<option value="category" {if $easycaptcha.activate_on.category}selected{/if}>{'Album comments'|translate}</option>{/if} 
  • extensions/EasyCaptcha/template/style.css

    r26025 r29633  
    5151} 
    5252 
    53 .chzn-choices li { 
    54   clear:none !important; 
     53.selectize-control { 
     54  width:300px; 
     55  display:inline-block; 
    5556} 
    5657 
Note: See TracChangeset for help on using the changeset viewer.