mirror of
https://github.com/searxng/searxng.git
synced 2024-09-18 03:00:22 +02:00
15 lines
477 B
JavaScript
15 lines
477 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;
|
|
});
|
|
}
|
|
});
|