summaryrefslogtreecommitdiff
path: root/searx/static/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'searx/static/plugins')
-rw-r--r--searx/static/plugins/js/search_on_category_select.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/searx/static/plugins/js/search_on_category_select.js b/searx/static/plugins/js/search_on_category_select.js
index a6dd447a0..19aeef944 100644
--- 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();
+ }
+ });
}
});