[fix] checkbox ids
commitfa29452bd8071271c6a86068b2944ec3181fdd90
authorasciimoo <asciimoo@gmail.com>
dateTue 3 Dec 2013, 19:03 (13 years ago)
parentf1f0d97
searx/templates/search.html+1−1
@@ -6,7 +6,7 @@
66 <div>
77 {% for category in categories %}
88 <div class="checkbox_container">
9− <input type="checkbox" name="category_{{ category }}" {% if category in selected_categories %}checked="checked"{% endif %} /><label for="checkbox_{{ category }}" class="cb"></label><label for="checkbox_{{ category }}">{{ category }}</label>
9+ <input type="checkbox" id="checkbox_{{ category|replace(' ', '_') }}" name="category_{{ category|replace(' ', '_') }}" {% if category in selected_categories %}checked="checked"{% endif %} /><label for="checkbox_{{ category }}" class="cb"></label><label for="checkbox_{{ category }}">{{ category }}</label>
1010 </div>
1111 {% endfor %}
1212 </div>