git.iko.soy
/
searx
readme
files
commits
refs
on
master
help
sign in
search on filter select
90e74fb
Noemi Vanyi
10 years ago
searx/static/plugins/js/search_on_category_select.js
+5
compare with master
unified
split
@@ -10,5 +10,10 @@ $(document).ready(function() {
10
}
10
}
11
return
false
;
11
return
false
;
12
});
12
});
13
+
$(
'#time-range > option'
).click(
function
(e) {
14
+
if
($(
'#q'
).val()) {
15
+
$(
'#search_form'
).submit();
16
+
}
17
+
});
13
}
18
}
14
});
19
});
searx/templates/oscar/time-range.html
+1
−1
@@ -1,4 +1,4 @@
1
−
<select name=
"time_range"
>
1
+
<select name=
"time_range"
id=
"time-range"
>
2
<option id=
"time-range-anytime"
value=
""
{{ "selected" if time_range=
=""
or not time_range else ""}}>
2
<option id=
"time-range-anytime"
value=
""
{{ "selected" if time_range=
=""
or not time_range else ""}}>
3
{{ _('Anytime') }}
3
{{ _('Anytime') }}
4
</option>
4
</option>
keys
esc to close
j k
move down, up
enter
open
esc
back, or up a level
1 2 3 4
readme, files, commits, refs
/
filter
y
copy the clone command
c
compare the chosen commit with another (or shift-click both)
?
show or hide this list