mirror of
https://github.com/searxng/searxng.git
synced 2024-11-27 05:11:03 +00:00
search on filter select
This commit is contained in:
parent
16a8641649
commit
90e74fbb28
2 changed files with 6 additions and 1 deletions
|
@ -10,5 +10,10 @@ $(document).ready(function() {
|
|||
}
|
||||
return false;
|
||||
});
|
||||
$('#time-range > option').click(function(e) {
|
||||
if($('#q').val()) {
|
||||
$('#search_form').submit();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<select name="time_range">
|
||||
<select name="time_range" id="time-range">
|
||||
<option id="time-range-anytime" value="" {{ "selected" if time_range=="" or not time_range else ""}}>
|
||||
{{ _('Anytime') }}
|
||||
</option>
|
||||
|
|
Loading…
Reference in a new issue