Bug 155502: focus the summary field when loading the search/query pages

Patch by kiko, r=gerv, a=justdave
parent ec1cd335
...@@ -350,6 +350,10 @@ function selectProduct(f) { ...@@ -350,6 +350,10 @@ function selectProduct(f) {
<td> <td>
<input name="short_desc" size="40" accesskey="s" <input name="short_desc" size="40" accesskey="s"
value="[% default.short_desc.0 FILTER html %]"> value="[% default.short_desc.0 FILTER html %]">
<script language="JavaScript" type="text/javascript"> <!--
document.forms['queryform'].short_desc.focus();
// -->
</script>
</td> </td>
<td> <td>
[% IF button_name %] [% IF button_name %]
......
...@@ -48,7 +48,7 @@ For example, if the [% terms.bug %] you are looking for is a browser crash when ...@@ -48,7 +48,7 @@ For example, if the [% terms.bug %] you are looking for is a browser crash when
for "crash secure SSL flash". for "crash secure SSL flash".
</p> </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="query_format" value="specific">
<input type="hidden" name="order" value="relevance desc"> <input type="hidden" name="order" value="relevance desc">
...@@ -90,6 +90,10 @@ for "crash secure SSL flash". ...@@ -90,6 +90,10 @@ for "crash secure SSL flash".
<td> <td>
<input name="content" size="40" <input name="content" size="40"
value="[% default.content.0 FILTER html %]"> value="[% default.content.0 FILTER html %]">
<script language="JavaScript" type="text/javascript"> <!--
document.forms['queryform'].content.focus();
// -->
</script>
</td> </td>
</tr> </tr>
<tr> <tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment