on master help sign in
[mod] the search text input gets the focus automatically only on the index page.
commitb70b0775f30670e4d2f168a5e81059f59b8732ae authordalf <alex@al-f.net> dateThu 2 Jan 2014, 23:02 (13 years ago) parent43a6ffc
1 file changed+1−1
searx/static/js/searx.js+1−1
searx/static/js/searx.js+1−1
@@ -17,7 +17,7 @@
1717
1818 addListener(w, 'load', function () {
1919 var qinput = d.getElementById('q');
20− if (qinput !== null) {
20+ if (qinput !== null && qinput.value === "") {
2121 addListener(qinput, 'focus', placeCursorAtEnd);
2222 qinput.focus();
2323 }