summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authordalf <alex@al-f.net>2014-01-02 23:02:38 +0100
committerdalf <alex@al-f.net>2014-01-02 23:02:38 +0100
commitb70b0775f30670e4d2f168a5e81059f59b8732ae (patch)
treec0ab7c508cb3860f94c08868abd0dc9a80340df1 /searx
parent43a6ffcd4644fb831bd4a7bb47c856e21d3ab5e6 (diff)
downloadsearxng-b70b0775f30670e4d2f168a5e81059f59b8732ae.tar.gz
searxng-b70b0775f30670e4d2f168a5e81059f59b8732ae.zip
[mod] the search text input gets the focus automatically only on the index page.
Diffstat (limited to 'searx')
-rw-r--r--searx/static/js/searx.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/static/js/searx.js b/searx/static/js/searx.js
index 5eb880f65..7b224a17f 100644
--- a/searx/static/js/searx.js
+++ b/searx/static/js/searx.js
@@ -17,7 +17,7 @@
addListener(w, 'load', function () {
var qinput = d.getElementById('q');
- if (qinput !== null) {
+ if (qinput !== null && qinput.value === "") {
addListener(qinput, 'focus', placeCursorAtEnd);
qinput.focus();
}