Browse Source

[fix] checkbox ids

asciimoo 11 years ago
parent
commit
fa29452bd8
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      searx/templates/search.html

+ 1
- 1
searx/templates/search.html View File

6
     <div>
6
     <div>
7
     {% for category in categories %}
7
     {% for category in categories %}
8
         <div class="checkbox_container">
8
         <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>
10
         </div>
10
         </div>
11
     {% endfor %}
11
     {% endfor %}
12
     </div>
12
     </div>