summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/en/default/search/form.html.tmpl4
-rw-r--r--template/en/default/search/search-specific.html.tmpl6
2 files changed, 9 insertions, 1 deletions
diff --git a/template/en/default/search/form.html.tmpl b/template/en/default/search/form.html.tmpl
index 4f2d6bbeb..015387b11 100644
--- a/template/en/default/search/form.html.tmpl
+++ b/template/en/default/search/form.html.tmpl
@@ -350,6 +350,10 @@ function selectProduct(f) {
<td>
<input name="short_desc" size="40" accesskey="s"
value="[% default.short_desc.0 FILTER html %]">
+ <script language="JavaScript" type="text/javascript"> <!--
+ document.forms['queryform'].short_desc.focus();
+ // -->
+ </script>
</td>
<td>
[% IF button_name %]
diff --git a/template/en/default/search/search-specific.html.tmpl b/template/en/default/search/search-specific.html.tmpl
index f4596e602..345483320 100644
--- a/template/en/default/search/search-specific.html.tmpl
+++ b/template/en/default/search/search-specific.html.tmpl
@@ -48,7 +48,7 @@ For example, if the [% terms.bug %] you are looking for is a browser crash when
for "crash secure SSL flash".
</p>
-<form method="get" action="buglist.cgi">
+<form name="queryform" method="get" action="buglist.cgi">
<input type="hidden" name="query_format" value="specific">
<input type="hidden" name="order" value="relevance desc">
@@ -90,6 +90,10 @@ for "crash secure SSL flash".
<td>
<input name="content" size="40"
value="[% default.content.0 FILTER html %]">
+ <script language="JavaScript" type="text/javascript"> <!--
+ document.forms['queryform'].content.focus();
+ // -->
+ </script>
</td>
</tr>
<tr>