Update _sort_order_choose.html.erb
This commit is contained in:
parent
a03c531212
commit
cb85f736b9
|
@ -1,10 +1,18 @@
|
||||||
|
<script>
|
||||||
|
function change_order(){
|
||||||
|
var value = $("input[name='order_asc']")[0].checked
|
||||||
|
$("input[name='order_asc']").val(String(value))
|
||||||
|
document.order_form.submit()
|
||||||
|
}
|
||||||
|
</script>
|
||||||
<form method="get" action='?' name='order_form'>
|
<form method="get" action='?' name='order_form'>
|
||||||
|
<input type='hidden' name='order_asc' value=''>
|
||||||
<nobr>
|
<nobr>
|
||||||
<%= t('archive.choose_order')+':' %>
|
<%= t('archive.choose_order')+':' %>
|
||||||
<% if @choose %>
|
<% if @choose %>
|
||||||
<input type="checkbox" name="order_asc" value="false" onchange='document.order_form.submit()' checked><span><%= t('archive.yes') %></span>
|
<input type="checkbox" onchange='change_order()' checked><span><%= t('archive.yes') %></span>
|
||||||
<% else %>
|
<% else %>
|
||||||
<input type="checkbox" name="order_asc" value="true" onchange='document.order_form.submit()'><span><%= t('archive.no') %></span>
|
<input type="checkbox" onchange='change_order()'><span><%= t('archive.no') %></span>
|
||||||
<% end %>
|
<% end %>
|
||||||
</nobr>
|
</nobr>
|
||||||
</form>
|
</form>
|
Loading…
Reference in New Issue