mirror of
https://github.com/searx/searx
synced 2025-08-30 14:08:47 +00:00
[fix] do not use category select js if there is no search query field on the page
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
$(document).ready(function() {
|
||||
if($('#q')) {
|
||||
if($('#q').length) {
|
||||
$('#categories label').click(function(e) {
|
||||
$('#categories input[type="checkbox"]').each(function(i, checkbox) {
|
||||
$(checkbox).prop('checked', false);
|
||||
|
Reference in New Issue
Block a user