forked from Ponysearch/Ponysearch
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;
|
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 ""}}>
|
<option id="time-range-anytime" value="" {{ "selected" if time_range=="" or not time_range else ""}}>
|
||||||
{{ _('Anytime') }}
|
{{ _('Anytime') }}
|
||||||
</option>
|
</option>
|
||||||
|
|
Loading…
Reference in a new issue