Changeset 11279 for trunk/admin/themes/default/template
- Timestamp:
- Jun 9, 2011, 4:32:20 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/themes/default/template/configuration.tpl
r10812 r11279 90 90 91 91 <li> 92 <label> 93 <span class="property"> 94 {'Week starts on'|@translate} 95 {html_options name="week_starts_on" options=$main.week_starts_on_options selected=$main.week_starts_on_options_selected} 96 </span> 97 </label> 98 </li> 92 93 <span class="property"> 94 {'Week starts on'|@translate} 95 {html_options name="week_starts_on" options=$main.week_starts_on_options selected=$main.week_starts_on_options_selected} 96 </span> 97 </li> 98 99 <li> 100 101 <span class="property"> 102 {'Default photos order'|@translate} 103 {html_options name="order_by" options=$main.order_by_options selected=$main.order_by_selected} 104 <input type="text" name="order_by_perso" size="40" value="{$main.order_by_perso}" 105 {if $main.order_by_selected != 'custom'}style="display:none;"{/if}/> 106 </span> 107 </li> 108 <li> 109 110 <span class="property"> 111 {'Default photos order inside album'|@translate} 112 {html_options name="order_by_inside_category" options=$main.order_by_inside_category_options selected=$main.order_by_inside_category_selected} 113 <input type="text" name="order_by_inside_category_perso" size="40" value="{$main.order_by_inside_category_perso}" 114 {if $main.order_by_inside_category_selected != 'custom'}style="display:none;"{/if}> 115 </span> 116 </li> 117 118 {footer_script require='jquery'}{literal} 119 jQuery(document).ready(function () { 120 $('select[name="order_by"]').change(function () { 121 if ($(this).val() == 'custom') { 122 $('input[name="order_by_perso"]').show(); 123 } else { 124 $('input[name="order_by_perso"]').hide(); 125 } 126 }); 127 $('select[name="order_by_inside_category"]').change(function () { 128 if ($(this).val() == 'custom') { 129 $('input[name="order_by_inside_category_perso"]').show(); 130 } else { 131 $('input[name="order_by_inside_category_perso"]').hide(); 132 } 133 }); 134 }); 135 {/literal}{/footer_script} 99 136 </ul> 100 137 </fieldset>
Note: See TracChangeset
for help on using the changeset viewer.