summaryrefslogtreecommitdiffstats
path: root/template/en/default/attachment
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/attachment
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/attachment')
-rw-r--r--template/en/default/attachment/choose.html.tmpl11
1 files changed, 5 insertions, 6 deletions
diff --git a/template/en/default/attachment/choose.html.tmpl b/template/en/default/attachment/choose.html.tmpl
index 9a82d7c86..f20facd90 100644
--- a/template/en/default/attachment/choose.html.tmpl
+++ b/template/en/default/attachment/choose.html.tmpl
@@ -7,13 +7,12 @@
#%]
[% PROCESS global/header.html.tmpl
- title = "Locate or Create Attachment",
- onload = "document.forms['choose-id'].id.focus()"
- %]
+ title = "Locate or Create Attachment"
+%]
<form name="choose-id" method="get" action="attachment.cgi">
<p>Access an attachment by entering its ID into the form below:</p>
- <p>Attachment ID: <input name="id" size="6">
+ <p>Attachment ID: <input name="id" size="6" autofocus required>
<button name="action" value="edit" id="edit">Details</button>
<button name="action" value="view" id="view">View</button>
</p>
@@ -21,14 +20,14 @@
<form method="get" action="show_bug.cgi">
<p>Or, Access it from the list of attachments in its associated [% terms.bug %] report:</p>
- <p>[% terms.Bug %] ID: <input name="id" size="6">
+ <p>[% terms.Bug %] ID: <input name="id" size="6" required>
<input type="submit" name="action" value="View" id="action">
</p>
</form>
<form method="get" action="attachment.cgi">
<p>Or, Create a new attachment by entering its [% terms.bug %] Id below:</p>
- <p>[% terms.Bug %] ID: <input name="bugid" size="6">
+ <p>[% terms.Bug %] ID: <input name="bugid" size="6" required>
<button name="action" value="enter" id="action">New Attachment</button>
</p>
</form>