Fix the modindex checkboxes if none is selected.

This commit is contained in:
Georg Brandl 2007-08-03 07:40:36 +00:00
parent dbeb13600f
commit 98f098e4be
2 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@
{%- if pl in showpf %} checked="checked"{% endif %}>
<label for="pl-{{ pl }}">{{ pl }}</label>
{% endfor %}
<input type="hidden" name="newpf" value="true">
<input type="submit" value="Apply">
</form>
{% endif %}

View File

@ -348,7 +348,7 @@ class DocumentationApplication(object):
} for x in sorted(most_frequent)]
showpf = None
newpf = req.args.get('pf')
newpf = req.args.get('newpf')
sesspf = req.session.get('pf')
if newpf or sesspf:
yield NoCache