on master help sign in
Merge branch 'master' of https://github.com/asciimoo/searx
commit04e7075c88b17d7c54e495dd48ca29064a042b82 authorpw3t <romain@berthor.fr> dateFri 3 Jan 2014, 19:00 (13 years ago) parentefb6ecab1c6b0a
2 files changed+2−2
searx/static/js/searx.js+1−1 searx/templates/search.html+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 }
searx/templates/search.html+1−1
@@ -1,6 +1,6 @@
11<form method="post" action="/" id="search_form">
22<div id="search_wrapper">
3− <input type="text" class="q" name="q" tabindex="1" autocomplete="off" {% if q %}value="{{ q }}"{% endif %}/>
3+ <input type="text" id="q" class="q" name="q" tabindex="1" autocomplete="off" {% if q %}value="{{ q }}"{% endif %}/>
44 <input type="submit" value="" id="search_submit" />
55</div>
66 <div>