Changeset 5647 for extensions/photoWidget/template/admin.tpl
- Timestamp:
- Apr 4, 2010, 10:44:52 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/photoWidget/template/admin.tpl
r5613 r5647 7 7 <script type="text/javascript"> 8 8 $(function() { 9 $('input[name=pw_all_categories]').change(function() { 10 if ($(this).attr('value')==0) { 11 $('#pw-select-categories').removeClass('hide'); 12 } else { 13 $('#pw-select-categories').addClass('hide'); 14 } 15 }); 16 9 17 $('input.pwg-picker') 10 18 .each(function() { … … 47 55 <legend>{'Main configuration'|translate}</legend> 48 56 <p class="field radio"><span>{'All categories'|translate} ?</span> 49 {html_radios name= 'pw_all_categoriesoptions=$PW_CAT_CHOICES selected=$PW_ALL_CATEGORIES}57 {html_radios name="pw_all_categories" options=$PW_CAT_CHOICES selected=$PW_ALL_CATEGORIES} 50 58 </p> 51 59 52 <p class="field pw-categories ">60 <p class="field pw-categories{if $PW_ALL_CATEGORIES==1} hide{/if}" id="pw-select-categories"> 53 61 <label>{'Applicable categorie(s)'|translate}</label> 54 62 <select name="pw_categories[]" multiple="multiple" size="{$pw_categories|@count|@max:3}"> 55 <option value=" "></option>63 <option value="__none__"></option> 56 64 {html_options options=$ALL_CATEGORIES selected=$PW_CATEGORIES} 57 65 </select>
Note: See TracChangeset
for help on using the changeset viewer.