summaryrefslogtreecommitdiffstats
path: root/template/en/default/admin/milestones/create.html.tmpl
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2014-01-20 23:15:06 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2014-01-20 23:15:06 +0100
commite02e3bc792293af9460da9c9d6b9185b94c5307f (patch)
treefccf99d2e3fdcfa07f501be4f6a5e1de2ff22161 /template/en/default/admin/milestones/create.html.tmpl
parenta59fdab6cb0c0249a606d60b5d565aecdbaf79cb (diff)
downloadbugzilla-e02e3bc792293af9460da9c9d6b9185b94c5307f.tar.gz
bugzilla-e02e3bc792293af9460da9c9d6b9185b94c5307f.tar.xz
Bug 958825: Use HTML5's attribute "autofocus" instead of onload="element.focus()"
r/a=justdave
Diffstat (limited to 'template/en/default/admin/milestones/create.html.tmpl')
-rw-r--r--template/en/default/admin/milestones/create.html.tmpl6
1 files changed, 2 insertions, 4 deletions
diff --git a/template/en/default/admin/milestones/create.html.tmpl b/template/en/default/admin/milestones/create.html.tmpl
index 78ef49a8a..d15e43d55 100644
--- a/template/en/default/admin/milestones/create.html.tmpl
+++ b/template/en/default/admin/milestones/create.html.tmpl
@@ -18,7 +18,6 @@
title = title
subheader = subheader
style_urls = ['skins/standard/admin.css']
- onload = "document.forms['f'].milestone.focus()"
%]
<form name="f" method="post" action="editmilestones.cgi">
@@ -26,12 +25,11 @@
<tr>
<th><label for="milestone">Milestone:</label></th>
<td><input id="milestone" size="64" maxlength="64" name="milestone"
- value=""></td>
+ autofocus></td>
</tr>
<tr>
<th><label for="sortkey">Sortkey:</label></th>
- <td><input id="sortkey" size="20" maxlength="20" name="sortkey"
- value=""></td>
+ <td><input id="sortkey" size="20" maxlength="20" name="sortkey"></td>
</tr>
</table>
<input type="submit" id="create" value="Add">