]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 304542: Focus/Select forms with javascript when editting milestones - Patch by...
authorlpsolit%gmail.com <>
Tue, 23 Aug 2005 19:39:17 +0000 (19:39 +0000)
committerlpsolit%gmail.com <>
Tue, 23 Aug 2005 19:39:17 +0000 (19:39 +0000)
template/en/default/admin/milestones/create.html.tmpl
template/en/default/admin/milestones/edit.html.tmpl

index ac707c19582ea926acef5498b6fb6e2d8546daf9..d8779dd544f161ee8941c5a72753635cd78dee19 100644 (file)
 [% PROCESS global/header.html.tmpl
   title = title
   h2 = h2
+  onload = "document.forms['f'].milestone.focus()"
 %]
 
-<form method="post" action="editmilestones.cgi">
+<form name="f" method="post" action="editmilestones.cgi">
   <table border="0" cellpadding="4" cellspacing="0">
     <tr>
       <th align="right"><label for="milestone">Milestone:</label></th>
index 417a69276460d2f9b0431fbdf789f8694e8de8ed..f49cacf4a9832c16e8317ee7ffec46b275d6561b 100644 (file)
                    [%- product FILTER html %]'[% END %]
 [% PROCESS global/header.html.tmpl
   title = title
+  onload = "document.forms['f'].milestone.select()"
 %]
 
-<form method="post" action="editmilestones.cgi">
+<form name="f" method="post" action="editmilestones.cgi">
   <table border="0" cellpadding="4" cellspacing="0">
 
     <tr>