mirror of https://github.com/searxng/searxng
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
771 B
JavaScript
25 lines
771 B
JavaScript
$(document).ready(function() {
|
|
if($('#q').length) {
|
|
$('#categories label').click(function(e) {
|
|
$('#categories input[type="checkbox"]').each(function(i, checkbox) {
|
|
$(checkbox).prop('checked', false);
|
|
});
|
|
$(document.getElementById($(this).attr("for"))).prop('checked', true);
|
|
if($('#q').val()) {
|
|
$('#search_form').submit();
|
|
}
|
|
return false;
|
|
});
|
|
$('#time-range').change(function(e) {
|
|
if($('#q').val()) {
|
|
$('#search_form').submit();
|
|
}
|
|
});
|
|
$('#language').change(function(e) {
|
|
if($('#q').val()) {
|
|
$('#search_form').submit();
|
|
}
|
|
});
|
|
}
|
|
});
|