commit: 90e74fbb288b2f1df0516d877d3bd239c7800412
parent 16a86416492cd8c0a44116a0195e7c5a3f25a8d6
Author: Noemi Vanyi <sitbackandwait@gmail.com>
Date: Mon, 25 Jul 2016 23:40:31 +0200
search on filter select
Diffstat:
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/searx/static/plugins/js/search_on_category_select.js b/searx/static/plugins/js/search_on_category_select.js
@@ -10,5 +10,10 @@ $(document).ready(function() {
}
return false;
});
+ $('#time-range > option').click(function(e) {
+ if($('#q').val()) {
+ $('#search_form').submit();
+ }
+ });
}
});
diff --git a/searx/templates/oscar/time-range.html b/searx/templates/oscar/time-range.html
@@ -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>