search on filter select

This commit is contained in:
Noemi Vanyi 2016-07-25 23:40:31 +02:00
parent 16a8641649
commit 90e74fbb28
2 changed files with 6 additions and 1 deletions

View File

@ -10,5 +10,10 @@ $(document).ready(function() {
} }
return false; return false;
}); });
$('#time-range > option').click(function(e) {
if($('#q').val()) {
$('#search_form').submit();
}
});
} }
}); });

View File

@ -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 ""}}> <option id="time-range-anytime" value="" {{ "selected" if time_range=="" or not time_range else ""}}>
{{ _('Anytime') }} {{ _('Anytime') }}
</option> </option>