[Python-checkins] r56692 - in doctools/trunk/sphinx: templates/modindex.html web/application.py
georg.brandl
python-checkins at python.org
Fri Aug 3 09:40:37 CEST 2007
Author: georg.brandl
Date: Fri Aug 3 09:40:36 2007
New Revision: 56692
Modified:
doctools/trunk/sphinx/templates/modindex.html
doctools/trunk/sphinx/web/application.py
Log:
Fix the modindex checkboxes if none is selected.
Modified: doctools/trunk/sphinx/templates/modindex.html
==============================================================================
--- doctools/trunk/sphinx/templates/modindex.html (original)
+++ doctools/trunk/sphinx/templates/modindex.html Fri Aug 3 09:40:36 2007
@@ -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 %}
Modified: doctools/trunk/sphinx/web/application.py
==============================================================================
--- doctools/trunk/sphinx/web/application.py (original)
+++ doctools/trunk/sphinx/web/application.py Fri Aug 3 09:40:36 2007
@@ -348,7 +348,7 @@
} 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
More information about the Python-checkins
mailing list