]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 155502: focus the summary field when loading the search/query pages
authorjustdave%syndicomm.com <>
Sat, 17 Apr 2004 13:06:51 +0000 (13:06 +0000)
committerjustdave%syndicomm.com <>
Sat, 17 Apr 2004 13:06:51 +0000 (13:06 +0000)
Patch by kiko, r=gerv, a=justdave

template/en/default/search/form.html.tmpl
template/en/default/search/search-specific.html.tmpl

index 4f2d6bbebdeaa065e902ea1f6497472ef9bded90..015387b1158a967ce5ca7a38da317802b803f445 100644 (file)
@@ -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 %]
index f4596e6022476e684cf5abac697661e23a8022ef..345483320c7c2bfeb42f075047c28c8d8afc0687 100644 (file)
@@ -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>