feature:2317 move order config to Admin->Config->Options
first try, may has issues with very specials params git-svn-id: http://piwigo.org/svn/trunk@11279 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
193d1e4727
commit
f56fc4f36d
8 changed files with 230 additions and 11 deletions
|
|
@ -89,13 +89,50 @@
|
|||
</li>
|
||||
|
||||
<li>
|
||||
<label>
|
||||
<span class="property">
|
||||
{'Week starts on'|@translate}
|
||||
{html_options name="week_starts_on" options=$main.week_starts_on_options selected=$main.week_starts_on_options_selected}
|
||||
</span>
|
||||
</label>
|
||||
|
||||
<span class="property">
|
||||
{'Week starts on'|@translate}
|
||||
{html_options name="week_starts_on" options=$main.week_starts_on_options selected=$main.week_starts_on_options_selected}
|
||||
</span>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class="property">
|
||||
{'Default photos order'|@translate}
|
||||
{html_options name="order_by" options=$main.order_by_options selected=$main.order_by_selected}
|
||||
<input type="text" name="order_by_perso" size="40" value="{$main.order_by_perso}"
|
||||
{if $main.order_by_selected != 'custom'}style="display:none;"{/if}/>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
|
||||
<span class="property">
|
||||
{'Default photos order inside album'|@translate}
|
||||
{html_options name="order_by_inside_category" options=$main.order_by_inside_category_options selected=$main.order_by_inside_category_selected}
|
||||
<input type="text" name="order_by_inside_category_perso" size="40" value="{$main.order_by_inside_category_perso}"
|
||||
{if $main.order_by_inside_category_selected != 'custom'}style="display:none;"{/if}>
|
||||
</span>
|
||||
</li>
|
||||
|
||||
{footer_script require='jquery'}{literal}
|
||||
jQuery(document).ready(function () {
|
||||
$('select[name="order_by"]').change(function () {
|
||||
if ($(this).val() == 'custom') {
|
||||
$('input[name="order_by_perso"]').show();
|
||||
} else {
|
||||
$('input[name="order_by_perso"]').hide();
|
||||
}
|
||||
});
|
||||
$('select[name="order_by_inside_category"]').change(function () {
|
||||
if ($(this).val() == 'custom') {
|
||||
$('input[name="order_by_inside_category_perso"]').show();
|
||||
} else {
|
||||
$('input[name="order_by_inside_category_perso"]').hide();
|
||||
}
|
||||
});
|
||||
});
|
||||
{/literal}{/footer_script}
|
||||
</ul>
|
||||
</fieldset>
|
||||
{/if}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue