Changeset 13087 for trunk/admin/themes/default/template/configuration.tpl
- Timestamp:
- Feb 10, 2012, 10:41:08 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/themes/default/template/configuration.tpl
r13024 r13087 109 109 {foreach from=$main.order_by item=order} 110 110 <span class="filter {if $ORDER_BY_IS_CUSTOM}transparent{/if}"> 111 <select name="order_by _field[]" {if $ORDER_BY_IS_CUSTOM}disabled{/if}>112 {html_options options=$main.order_ field_options selected=$order.FIELD}111 <select name="order_by[]" {if $ORDER_BY_IS_CUSTOM}disabled{/if}> 112 {html_options options=$main.order_by_options selected=$order} 113 113 </select> 114 <select name="order_by_direction[]" {if $ORDER_BY_IS_CUSTOM}disabled{/if}>115 {html_options options=$main.order_direction_options selected=$order.DIRECTION }116 </select>117 114 <a class="removeFilter">{'delete'|@translate}</a> 118 115 </span> … … 129 126 {footer_script require='jquery'} 130 127 // counters for displaying of addFilter link 131 fields = {$main.order_by|@count}; max_fields = {$main.order_field_options|@count}; max_fields--;128 fields = {$main.order_by|@count}; max_fields = Math.ceil({$main.order_by_options|@count}/2); 132 129 133 130 {literal} … … 150 147 jQuery(document).ready(function () { 151 148 $('.addFilter').click(function() { 152 rel = $(this).attr('rel');153 149 $(this).prev('span.filter').clone().insertBefore($(this)); 154 $(this).prev('span.filter').children('select[name="order_by_field[]"]').val(''); 155 $(this).prev('span.filter').children('select[name="order_by_direction[]"]').val('ASC'); 150 $(this).prev('span.filter').children('select[name="order_by[]"]').val(''); 156 151 157 152 fields++;
Note: See TracChangeset
for help on using the changeset viewer.