Commits

Anonymous committed 049975a

Fix the modindex checkboxes if none is selected.

  • Participants
  • Parent commits ad7d3e7

Comments (0)

Files changed (2)

sphinx/templates/modindex.html

             {%- 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 %}

sphinx/web/application.py

                 } 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