This commit is contained in:
pw3t 2014-01-03 19:00:37 +01:00
commit 04e7075c88
2 changed files with 2 additions and 2 deletions

View File

@ -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();
}

View File

@ -1,6 +1,6 @@
<form method="post" action="/" id="search_form">
<div id="search_wrapper">
<input type="text" class="q" name="q" tabindex="1" autocomplete="off" {% if q %}value="{{ q }}"{% endif %}/>
<input type="text" id="q" class="q" name="q" tabindex="1" autocomplete="off" {% if q %}value="{{ q }}"{% endif %}/>
<input type="submit" value="" id="search_submit" />
</div>
<div>