diff options
author | dalf <alex@al-f.net> | 2014-01-02 23:02:38 +0100 |
---|---|---|
committer | dalf <alex@al-f.net> | 2014-01-02 23:02:38 +0100 |
commit | b70b0775f30670e4d2f168a5e81059f59b8732ae (patch) | |
tree | c0ab7c508cb3860f94c08868abd0dc9a80340df1 /searx | |
parent | 43a6ffcd4644fb831bd4a7bb47c856e21d3ab5e6 (diff) | |
download | searxng-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.js | 2 |
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(); } |