diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2014-01-20 23:15:06 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2014-01-20 23:15:06 +0100 |
commit | e02e3bc792293af9460da9c9d6b9185b94c5307f (patch) | |
tree | fccf99d2e3fdcfa07f501be4f6a5e1de2ff22161 /template/en/default/attachment | |
parent | a59fdab6cb0c0249a606d60b5d565aecdbaf79cb (diff) | |
download | bugs-e02e3bc792293af9460da9c9d6b9185b94c5307f.tar bugs-e02e3bc792293af9460da9c9d6b9185b94c5307f.tar.gz bugs-e02e3bc792293af9460da9c9d6b9185b94c5307f.tar.bz2 bugs-e02e3bc792293af9460da9c9d6b9185b94c5307f.tar.xz bugs-e02e3bc792293af9460da9c9d6b9185b94c5307f.zip |
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.tmpl | 11 |
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> |