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/bug | |
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/bug')
-rw-r--r-- | template/en/default/bug/create/create-guided.html.tmpl | 13 | ||||
-rw-r--r-- | template/en/default/bug/summarize-time.html.tmpl | 3 |
2 files changed, 6 insertions, 10 deletions
diff --git a/template/en/default/bug/create/create-guided.html.tmpl b/template/en/default/bug/create/create-guided.html.tmpl index 64bacf0b1..7f9e5179f 100644 --- a/template/en/default/bug/create/create-guided.html.tmpl +++ b/template/en/default/bug/create/create-guided.html.tmpl @@ -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> diff --git a/template/en/default/bug/summarize-time.html.tmpl b/template/en/default/bug/summarize-time.html.tmpl index 3865c02a2..c3c233494 100644 --- a/template/en/default/bug/summarize-time.html.tmpl +++ b/template/en/default/bug/summarize-time.html.tmpl @@ -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> |