Ignore:
Timestamp:
Apr 4, 2010, 10:44:52 PM (14 years ago)
Author:
nikrou
Message:
  • Improve categories selections in admin
  • Fix some mispelling language keys
File:
1 edited

Legend:

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

    r5613 r5647  
    77<script type="text/javascript">
    88$(function() {
     9$('input[name=pw_all_categories]').change(function() {
     10if ($(this).attr('value')==0) {
     11$('#pw-select-categories').removeClass('hide');
     12} else {
     13$('#pw-select-categories').addClass('hide');
     14}
     15});
     16
    917$('input.pwg-picker')
    1018  .each(function() {
     
    4755  <legend>{'Main configuration'|translate}</legend>
    4856  <p class="field radio"><span>{'All categories'|translate} ?</span>
    49     {html_radios name='pw_all_categories options=$PW_CAT_CHOICES selected=$PW_ALL_CATEGORIES}
     57    {html_radios name="pw_all_categories" options=$PW_CAT_CHOICES selected=$PW_ALL_CATEGORIES}
    5058  </p>
    5159
    52   <p class="field pw-categories">
     60  <p class="field pw-categories{if $PW_ALL_CATEGORIES==1} hide{/if}" id="pw-select-categories">
    5361    <label>{'Applicable categorie(s)'|translate}</label>
    5462    <select name="pw_categories[]" multiple="multiple" size="{$pw_categories|@count|@max:3}">
    55       <option value=""></option>
     63      <option value="__none__"></option>
    5664      {html_options options=$ALL_CATEGORIES selected=$PW_CATEGORIES}
    5765    </select>
Note: See TracChangeset for help on using the changeset viewer.