Browse Source

use `change` function just like in case of language selection

The previous version did not work in Chrome browser.

Closes #1102
Noémi Ványi 7 years ago
parent
commit
31005f3121
1 changed files with 1 additions and 1 deletions
  1. 1 1
      searx/static/plugins/js/search_on_category_select.js

+ 1 - 1
searx/static/plugins/js/search_on_category_select.js

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