[fix][#36] paging category reset

This commit is contained in:
asciimoo 2014-02-15 07:51:17 +01:00
parent 77b936e3be
commit ced6a94591

View File

@ -62,6 +62,9 @@
<form method="post" action="/"> <form method="post" action="/">
<div class="left"> <div class="left">
<input type="hidden" name="q" value="{{ q }}" /> <input type="hidden" name="q" value="{{ q }}" />
{% for category in selected_categories %}
<input type="hidden" name="category_{{ category }}" value="1"/>
{% endfor %}
<input type="hidden" name="pageno" value="{{ pageno-1 }}" /> <input type="hidden" name="pageno" value="{{ pageno-1 }}" />
<input type="submit" value="<< {{ _('previous page') }}" /> <input type="submit" value="<< {{ _('previous page') }}" />
</div> </div>
@ -69,6 +72,9 @@
{% endif %} {% endif %}
<form method="post" action="/"> <form method="post" action="/">
<div class="left"> <div class="left">
{% for category in selected_categories %}
<input type="hidden" name="category_{{ category }}" value="1"/>
{% endfor %}
<input type="hidden" name="q" value="{{ q }}" /> <input type="hidden" name="q" value="{{ q }}" />
<input type="hidden" name="pageno" value="{{ pageno+1 }}" /> <input type="hidden" name="pageno" value="{{ pageno+1 }}" />
<input type="submit" value="{{ _('next page') }} >>" /> <input type="submit" value="{{ _('next page') }} >>" />