Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
e02e3bc7
Commit
e02e3bc7
authored
Jan 20, 2014
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 958825: Use HTML5's attribute "autofocus" instead of onload="element.focus()"
r/a=justdave
parent
a59fdab6
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
31 additions
and
62 deletions
+31
-62
login.html.tmpl
template/en/default/account/auth/login.html.tmpl
+2
-3
create.html.tmpl
template/en/default/account/create.html.tmpl
+3
-7
confirm-new.html.tmpl
template/en/default/account/email/confirm-new.html.tmpl
+2
-2
create.html.tmpl
template/en/default/admin/milestones/create.html.tmpl
+2
-4
create.html.tmpl
template/en/default/admin/users/create.html.tmpl
+0
-1
search.html.tmpl
template/en/default/admin/users/search.html.tmpl
+1
-2
userdata.html.tmpl
template/en/default/admin/users/userdata.html.tmpl
+2
-1
choose.html.tmpl
template/en/default/attachment/choose.html.tmpl
+5
-6
create-guided.html.tmpl
template/en/default/bug/create/create-guided.html.tmpl
+5
-8
summarize-time.html.tmpl
template/en/default/bug/summarize-time.html.tmpl
+1
-2
textarea.html.tmpl
template/en/default/global/textarea.html.tmpl
+1
-1
quicksearch.html.tmpl
template/en/default/pages/quicksearch.html.tmpl
+3
-7
search-specific.html.tmpl
template/en/default/search/search-specific.html.tmpl
+4
-18
No files found.
template/en/default/account/auth/login.html.tmpl
View file @
e02e3bc7
...
...
@@ -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 @@
</th>
<td>
<input size="35" id="Bugzilla_login" name="Bugzilla_login"
[%- ' type="email"' UNLESS Param('emailsuffix') %]>
[%- ' type="email"' UNLESS Param('emailsuffix') %]
autofocus
>
[% Param('emailsuffix') FILTER html %]
</td>
</tr>
...
...
template/en/default/account/create.html.tmpl
View file @
e02e3bc7
...
...
@@ -13,13 +13,9 @@
# Param("emailsuffix") is used to pre-fill the email field.
#%]
[% title = BLOCK %]
Create a new [% terms.Bugzilla %] account
[% END %]
[% PROCESS global/header.html.tmpl
title =
title
onload = "document.forms['account_creation_form'].login.focus();"
%]
title =
"Create a new $terms.Bugzilla account"
%]
<p>
To create a [% terms.Bugzilla %] account, all you need to do is to enter
...
...
@@ -75,7 +71,7 @@
Email address:
[% END %]
</span>
<input size="35" id="login" name="login"
<input size="35" id="login" name="login"
autofocus
[%- ' type="email"' UNLESS Param('emailsuffix') %]>
[% Param('emailsuffix') FILTER html %]
<input type="hidden" id="token" name="token" value="[% issue_hash_token(['create_account']) FILTER html %]">
...
...
template/en/default/account/email/confirm-new.html.tmpl
View file @
e02e3bc7
...
...
@@ -15,7 +15,7 @@
[% title = BLOCK %]Create a new user account for '[% email FILTER html %]'[% END %]
[% PROCESS "global/header.html.tmpl"
title = title
onload = "document.forms['confirm_account_form'].realname.focus();"
%]
%]
<p>
To create your account, you must enter a password in the form below.
...
...
@@ -33,7 +33,7 @@
</tr>
<tr>
<th><small><i>(OPTIONAL)</i></small> <label for="realname">Real Name</label>:</th>
<td><input
type="text" id="realname" name="realname" value=""
></td>
<td><input
id="realname" name="realname" autofocus
></td>
</tr>
<tr>
<th><label for="passwd1">Type your password</label>:</th>
...
...
template/en/default/admin/milestones/create.html.tmpl
View file @
e02e3bc7
...
...
@@ -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">
...
...
template/en/default/admin/users/create.html.tmpl
View file @
e02e3bc7
...
...
@@ -15,7 +15,6 @@
[% PROCESS global/header.html.tmpl
title = "Add user"
style_urls = ['skins/standard/editusers.css']
onload = "document.forms['f'].login.focus()"
doc_section = "useradmin.html#createnewusers"
%]
...
...
template/en/default/admin/users/search.html.tmpl
View file @
e02e3bc7
...
...
@@ -18,7 +18,6 @@
[% PROCESS global/header.html.tmpl
title = "Search users"
style_urls = ['skins/standard/editusers.css']
onload = "document.forms['f'].matchstr.focus()"
doc_section = "useradmin.html#user-account-search"
%]
...
...
@@ -35,7 +34,7 @@
<option value="userid">user id</option>
</select>
<label for="matchstr">matching</label>
<input size="32" name="matchstr" id="matchstr">
<input size="32" name="matchstr" id="matchstr"
autofocus
>
<select name="matchtype">
<option value="substr" selected="selected">case-insensitive substring</option>
<option value="regexp">case-insensitive regexp</option>
...
...
template/en/default/admin/users/userdata.html.tmpl
View file @
e02e3bc7
...
...
@@ -22,7 +22,8 @@
<td>
[% IF editusers %]
<input size="64" maxlength="255" id="login" name="login"
value="[% otheruser.login FILTER html %]">
value="[% otheruser.login FILTER html %]"
[%- " autofocus" UNLESS editform %]>
[% IF editform %]
[% IF !otheruser.in_group('bz_sudo_protect') %]
<br>
...
...
template/en/default/attachment/choose.html.tmpl
View file @
e02e3bc7
...
...
@@ -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>
...
...
template/en/default/bug/create/create-guided.html.tmpl
View file @
e02e3bc7
...
...
@@ -223,9 +223,10 @@ function PutDescription() {
<th>Details</th>
<td>
[% INCLUDE global/textarea.html.tmpl
name = 'comment'
minrows = 6
cols = constants.COMMENT_COLS
name = 'comment'
minrows = 6
cols = constants.COMMENT_COLS
mandatory = 1
%]
<p>
Expand on the Summary. Please be
...
...
@@ -379,11 +380,7 @@ function PutDescription() {
<h3 id="step3">Step 3 of 3 - submit the [% terms.bug %] report</h3>
<p>
<input type="submit" id="report" value=" Submit [% terms.Bug %] Report "
onclick="if (this.form.comment.value == '')
{ alert('Please enter some details about this [% terms.bug %].');
this.form.comment.focus();
return false; } return true;">
<input type="submit" id="report" value="Submit [% terms.Bug %] Report">
</p>
<p>
...
...
template/en/default/bug/summarize-time.html.tmpl
View file @
e02e3bc7
...
...
@@ -261,7 +261,7 @@
<label accesskey="s" for="start_date">Period <u>s</u>tarting</label>:
</th>
<td>
<input
type="text" id="start_date" name="start_date" size="10"
<input
id="start_date" name="start_date" size="10" autofocus
value="[% start_date FILTER html %]" maxlength="10"
onchange="updateCalendarFromField(this)">
<button type="button" class="calendar_button" id="button_calendar_start_date"
...
...
@@ -323,7 +323,6 @@
<!--
[%+ PROCESS "global/calendar.js.tmpl" id = 'start_date' %]
[% PROCESS "global/calendar.js.tmpl" id = 'end_date' %]
document.forms['summary'].start_date.focus();
//-->
</script>
<hr>
...
...
template/en/default/global/textarea.html.tmpl
View file @
e02e3bc7
...
...
@@ -46,7 +46,7 @@
onFocus="this.rows=[% maxrows FILTER html %]"
[% END %]
[% IF mandatory %]
aria-required="true"
aria-required="true"
required
[% END %]
[% IF onchange %]
onchange="[% onchange FILTER html %]"
...
...
template/en/default/pages/quicksearch.html.tmpl
View file @
e02e3bc7
...
...
@@ -8,8 +8,7 @@
[% INCLUDE global/header.html.tmpl
title = "$terms.Bugzilla QuickSearch",
style_urls = ['skins/standard/page.css']
onload = 'document.forms[\'f\'].quicksearch.focus()'
style_urls = ['skins/standard/page.css']
%]
[% USE Bugzilla %]
...
...
@@ -17,11 +16,8 @@
<p><label for="quicksearch">Type in one or more words (or pieces of words)
to search for:</label></p>
<form name="f" action="buglist.cgi" method="get"
onsubmit="if (this.quicksearch.value == '')
{ alert('Please enter one or more search terms first.');
return false; } return true;">
<input type="text" size="40" name="quicksearch" id="quicksearch">
<form name="f" action="buglist.cgi" method="get">
<input size="40" name="quicksearch" id="quicksearch" autofocus required>
<input type="submit" value="Search" id="find">
</form>
...
...
template/en/default/search/search-specific.html.tmpl
View file @
e02e3bc7
...
...
@@ -91,28 +91,14 @@ for "crash secure SSL flash".
<label for="content">Words:</label>
</th>
<td>
<input name="content" size="40" id="content"
value="[% default.content.0 FILTER html %]">
<script type="text/javascript"> <!--
document.forms['queryform'].content.focus();
// -->
</script>
<input name="content" size="40" id="content" autofocus
value="[% default.content.0 FILTER html %]"
[%- " required" UNLESS Param('search_allow_no_criteria') %]>
</td>
</tr>
<tr>
<td></td>
<td>
[% IF Param('search_allow_no_criteria') %]
<input type="submit" id="search" value="Search">
[% ELSE %]
<input type="submit" id="search" value="Search"
onclick="if (this.form.content.value == '')
{alert('The Words field cannot be empty. You have to ' +
'enter at least one word in your search criteria.');
return false;} return true;">
[% END %]
</td>
<td><input type="submit" id="search" value="Search"></td>
</tr>
</table>
</form>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment