From e02e3bc792293af9460da9c9d6b9185b94c5307f Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Mon, 20 Jan 2014 23:15:06 +0100 Subject: Bug 958825: Use HTML5's attribute "autofocus" instead of onload="element.focus()" r/a=justdave --- template/en/default/account/auth/login.html.tmpl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'template/en/default/account/auth/login.html.tmpl') diff --git a/template/en/default/account/auth/login.html.tmpl b/template/en/default/account/auth/login.html.tmpl index 2d6a71f2d..27c0690af 100644 --- a/template/en/default/account/auth/login.html.tmpl +++ b/template/en/default/account/auth/login.html.tmpl @@ -15,8 +15,7 @@ [% END %] [% PROCESS global/header.html.tmpl - title = "Log in to $terms.Bugzilla", - onload = "document.forms['login'].Bugzilla_login.focus()" + title = "Log in to $terms.Bugzilla" %] [% USE Bugzilla %] @@ -40,7 +39,7 @@ + [%- ' type="email"' UNLESS Param('emailsuffix') %] autofocus> [% Param('emailsuffix') FILTER html %] -- cgit v1.2.3-24-g4f1b