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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
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 @@
...
@@ -15,8 +15,7 @@
[% END %]
[% END %]
[% PROCESS global/header.html.tmpl
[% PROCESS global/header.html.tmpl
title = "Log in to $terms.Bugzilla",
title = "Log in to $terms.Bugzilla"
onload = "document.forms['login'].Bugzilla_login.focus()"
%]
%]
[% USE Bugzilla %]
[% USE Bugzilla %]
...
@@ -40,7 +39,7 @@
...
@@ -40,7 +39,7 @@
</th>
</th>
<td>
<td>
<input size="35" id="Bugzilla_login" name="Bugzilla_login"
<input size="35" id="Bugzilla_login" name="Bugzilla_login"
[%- ' type="email"' UNLESS Param('emailsuffix') %]>
[%- ' type="email"' UNLESS Param('emailsuffix') %]
autofocus
>
[% Param('emailsuffix') FILTER html %]
[% Param('emailsuffix') FILTER html %]
</td>
</td>
</tr>
</tr>
...
...
template/en/default/account/create.html.tmpl
View file @
e02e3bc7
...
@@ -13,13 +13,9 @@
...
@@ -13,13 +13,9 @@
# Param("emailsuffix") is used to pre-fill the email field.
# Param("emailsuffix") is used to pre-fill the email field.
#%]
#%]
[% title = BLOCK %]
Create a new [% terms.Bugzilla %] account
[% END %]
[% PROCESS global/header.html.tmpl
[% PROCESS global/header.html.tmpl
title =
title
title =
"Create a new $terms.Bugzilla account"
onload = "document.forms['account_creation_form'].login.focus();"
%]
%]
<p>
<p>
To create a [% terms.Bugzilla %] account, all you need to do is to enter
To create a [% terms.Bugzilla %] account, all you need to do is to enter
...
@@ -75,7 +71,7 @@
...
@@ -75,7 +71,7 @@
Email address:
Email address:
[% END %]
[% END %]
</span>
</span>
<input size="35" id="login" name="login"
<input size="35" id="login" name="login"
autofocus
[%- ' type="email"' UNLESS Param('emailsuffix') %]>
[%- ' type="email"' UNLESS Param('emailsuffix') %]>
[% Param('emailsuffix') FILTER html %]
[% Param('emailsuffix') FILTER html %]
<input type="hidden" id="token" name="token" value="[% issue_hash_token(['create_account']) 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 @@
...
@@ -15,7 +15,7 @@
[% title = BLOCK %]Create a new user account for '[% email FILTER html %]'[% END %]
[% title = BLOCK %]Create a new user account for '[% email FILTER html %]'[% END %]
[% PROCESS "global/header.html.tmpl"
[% PROCESS "global/header.html.tmpl"
title = title
title = title
onload = "document.forms['confirm_account_form'].realname.focus();"
%]
%]
<p>
<p>
To create your account, you must enter a password in the form below.
To create your account, you must enter a password in the form below.
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
</tr>
</tr>
<tr>
<tr>
<th><small><i>(OPTIONAL)</i></small> <label for="realname">Real Name</label>:</th>
<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>
<tr>
<tr>
<th><label for="passwd1">Type your password</label>:</th>
<th><label for="passwd1">Type your password</label>:</th>
...
...
template/en/default/admin/milestones/create.html.tmpl
View file @
e02e3bc7
...
@@ -18,7 +18,6 @@
...
@@ -18,7 +18,6 @@
title = title
title = title
subheader = subheader
subheader = subheader
style_urls = ['skins/standard/admin.css']
style_urls = ['skins/standard/admin.css']
onload = "document.forms['f'].milestone.focus()"
%]
%]
<form name="f" method="post" action="editmilestones.cgi">
<form name="f" method="post" action="editmilestones.cgi">
...
@@ -26,12 +25,11 @@
...
@@ -26,12 +25,11 @@
<tr>
<tr>
<th><label for="milestone">Milestone:</label></th>
<th><label for="milestone">Milestone:</label></th>
<td><input id="milestone" size="64" maxlength="64" name="milestone"
<td><input id="milestone" size="64" maxlength="64" name="milestone"
value=""
></td>
autofocus
></td>
</tr>
</tr>
<tr>
<tr>
<th><label for="sortkey">Sortkey:</label></th>
<th><label for="sortkey">Sortkey:</label></th>
<td><input id="sortkey" size="20" maxlength="20" name="sortkey"
<td><input id="sortkey" size="20" maxlength="20" name="sortkey"></td>
value=""></td>
</tr>
</tr>
</table>
</table>
<input type="submit" id="create" value="Add">
<input type="submit" id="create" value="Add">
...
...
template/en/default/admin/users/create.html.tmpl
View file @
e02e3bc7
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
[% PROCESS global/header.html.tmpl
[% PROCESS global/header.html.tmpl
title = "Add user"
title = "Add user"
style_urls = ['skins/standard/editusers.css']
style_urls = ['skins/standard/editusers.css']
onload = "document.forms['f'].login.focus()"
doc_section = "useradmin.html#createnewusers"
doc_section = "useradmin.html#createnewusers"
%]
%]
...
...
template/en/default/admin/users/search.html.tmpl
View file @
e02e3bc7
...
@@ -18,7 +18,6 @@
...
@@ -18,7 +18,6 @@
[% PROCESS global/header.html.tmpl
[% PROCESS global/header.html.tmpl
title = "Search users"
title = "Search users"
style_urls = ['skins/standard/editusers.css']
style_urls = ['skins/standard/editusers.css']
onload = "document.forms['f'].matchstr.focus()"
doc_section = "useradmin.html#user-account-search"
doc_section = "useradmin.html#user-account-search"
%]
%]
...
@@ -35,7 +34,7 @@
...
@@ -35,7 +34,7 @@
<option value="userid">user id</option>
<option value="userid">user id</option>
</select>
</select>
<label for="matchstr">matching</label>
<label for="matchstr">matching</label>
<input size="32" name="matchstr" id="matchstr">
<input size="32" name="matchstr" id="matchstr"
autofocus
>
<select name="matchtype">
<select name="matchtype">
<option value="substr" selected="selected">case-insensitive substring</option>
<option value="substr" selected="selected">case-insensitive substring</option>
<option value="regexp">case-insensitive regexp</option>
<option value="regexp">case-insensitive regexp</option>
...
...
template/en/default/admin/users/userdata.html.tmpl
View file @
e02e3bc7
...
@@ -22,7 +22,8 @@
...
@@ -22,7 +22,8 @@
<td>
<td>
[% IF editusers %]
[% IF editusers %]
<input size="64" maxlength="255" id="login" name="login"
<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 editform %]
[% IF !otheruser.in_group('bz_sudo_protect') %]
[% IF !otheruser.in_group('bz_sudo_protect') %]
<br>
<br>
...
...
template/en/default/attachment/choose.html.tmpl
View file @
e02e3bc7
...
@@ -7,13 +7,12 @@
...
@@ -7,13 +7,12 @@
#%]
#%]
[% PROCESS global/header.html.tmpl
[% PROCESS global/header.html.tmpl
title = "Locate or Create Attachment",
title = "Locate or Create Attachment"
onload = "document.forms['choose-id'].id.focus()"
%]
%]
<form name="choose-id" method="get" action="attachment.cgi">
<form name="choose-id" method="get" action="attachment.cgi">
<p>Access an attachment by entering its ID into the form below:</p>
<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="edit" id="edit">Details</button>
<button name="action" value="view" id="view">View</button>
<button name="action" value="view" id="view">View</button>
</p>
</p>
...
@@ -21,14 +20,14 @@
...
@@ -21,14 +20,14 @@
<form method="get" action="show_bug.cgi">
<form method="get" action="show_bug.cgi">
<p>Or, Access it from the list of attachments in its associated [% terms.bug %] report:</p>
<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">
<input type="submit" name="action" value="View" id="action">
</p>
</p>
</form>
</form>
<form method="get" action="attachment.cgi">
<form method="get" action="attachment.cgi">
<p>Or, Create a new attachment by entering its [% terms.bug %] Id below:</p>
<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>
<button name="action" value="enter" id="action">New Attachment</button>
</p>
</p>
</form>
</form>
...
...
template/en/default/bug/create/create-guided.html.tmpl
View file @
e02e3bc7
...
@@ -223,9 +223,10 @@ function PutDescription() {
...
@@ -223,9 +223,10 @@ function PutDescription() {
<th>Details</th>
<th>Details</th>
<td>
<td>
[% INCLUDE global/textarea.html.tmpl
[% INCLUDE global/textarea.html.tmpl
name = 'comment'
name = 'comment'
minrows = 6
minrows = 6
cols = constants.COMMENT_COLS
cols = constants.COMMENT_COLS
mandatory = 1
%]
%]
<p>
<p>
Expand on the Summary. Please be
Expand on the Summary. Please be
...
@@ -379,11 +380,7 @@ function PutDescription() {
...
@@ -379,11 +380,7 @@ function PutDescription() {
<h3 id="step3">Step 3 of 3 - submit the [% terms.bug %] report</h3>
<h3 id="step3">Step 3 of 3 - submit the [% terms.bug %] report</h3>
<p>
<p>
<input type="submit" id="report" value=" Submit [% terms.Bug %] Report "
<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;">
</p>
</p>
<p>
<p>
...
...
template/en/default/bug/summarize-time.html.tmpl
View file @
e02e3bc7
...
@@ -261,7 +261,7 @@
...
@@ -261,7 +261,7 @@
<label accesskey="s" for="start_date">Period <u>s</u>tarting</label>:
<label accesskey="s" for="start_date">Period <u>s</u>tarting</label>:
</th>
</th>
<td>
<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"
value="[% start_date FILTER html %]" maxlength="10"
onchange="updateCalendarFromField(this)">
onchange="updateCalendarFromField(this)">
<button type="button" class="calendar_button" id="button_calendar_start_date"
<button type="button" class="calendar_button" id="button_calendar_start_date"
...
@@ -323,7 +323,6 @@
...
@@ -323,7 +323,6 @@
<!--
<!--
[%+ PROCESS "global/calendar.js.tmpl" id = 'start_date' %]
[%+ PROCESS "global/calendar.js.tmpl" id = 'start_date' %]
[% PROCESS "global/calendar.js.tmpl" id = 'end_date' %]
[% PROCESS "global/calendar.js.tmpl" id = 'end_date' %]
document.forms['summary'].start_date.focus();
//-->
//-->
</script>
</script>
<hr>
<hr>
...
...
template/en/default/global/textarea.html.tmpl
View file @
e02e3bc7
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
onFocus="this.rows=[% maxrows FILTER html %]"
onFocus="this.rows=[% maxrows FILTER html %]"
[% END %]
[% END %]
[% IF mandatory %]
[% IF mandatory %]
aria-required="true"
aria-required="true"
required
[% END %]
[% END %]
[% IF onchange %]
[% IF onchange %]
onchange="[% onchange FILTER html %]"
onchange="[% onchange FILTER html %]"
...
...
template/en/default/pages/quicksearch.html.tmpl
View file @
e02e3bc7
...
@@ -8,8 +8,7 @@
...
@@ -8,8 +8,7 @@
[% INCLUDE global/header.html.tmpl
[% INCLUDE global/header.html.tmpl
title = "$terms.Bugzilla QuickSearch",
title = "$terms.Bugzilla QuickSearch",
style_urls = ['skins/standard/page.css']
style_urls = ['skins/standard/page.css']
onload = 'document.forms[\'f\'].quicksearch.focus()'
%]
%]
[% USE Bugzilla %]
[% USE Bugzilla %]
...
@@ -17,11 +16,8 @@
...
@@ -17,11 +16,8 @@
<p><label for="quicksearch">Type in one or more words (or pieces of words)
<p><label for="quicksearch">Type in one or more words (or pieces of words)
to search for:</label></p>
to search for:</label></p>
<form name="f" action="buglist.cgi" method="get"
<form name="f" action="buglist.cgi" method="get">
onsubmit="if (this.quicksearch.value == '')
<input size="40" name="quicksearch" id="quicksearch" autofocus required>
{ alert('Please enter one or more search terms first.');
return false; } return true;">
<input type="text" size="40" name="quicksearch" id="quicksearch">
<input type="submit" value="Search" id="find">
<input type="submit" value="Search" id="find">
</form>
</form>
...
...
template/en/default/search/search-specific.html.tmpl
View file @
e02e3bc7
...
@@ -91,28 +91,14 @@ for "crash secure SSL flash".
...
@@ -91,28 +91,14 @@ for "crash secure SSL flash".
<label for="content">Words:</label>
<label for="content">Words:</label>
</th>
</th>
<td>
<td>
<input name="content" size="40" id="content"
<input name="content" size="40" id="content" autofocus
value="[% default.content.0 FILTER html %]">
value="[% default.content.0 FILTER html %]"
<script type="text/javascript"> <!--
[%- " required" UNLESS Param('search_allow_no_criteria') %]>
document.forms['queryform'].content.focus();
// -->
</script>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td></td>
<td></td>
<td>
<td><input type="submit" id="search" value="Search"></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>
</tr>
</tr>
</table>
</table>
</form>
</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