summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2015-01-21 17:54:39 +0100
committerDavid Lawrence <dkl@mozilla.com>2015-01-21 17:54:39 +0100
commit0f986cfd10d0df7dd0fc8bad67a36405b149a90f (patch)
treec958323c0d2b7c76ed2351a0546a5686b4d95073 /template
parent5bf6a94bc50dab384b25af06c1146de2c6025cc5 (diff)
downloadbugzilla-0f986cfd10d0df7dd0fc8bad67a36405b149a90f.tar.gz
bugzilla-0f986cfd10d0df7dd0fc8bad67a36405b149a90f.tar.xz
Bug 1122565: editversions.cgi should focus the version field on page load to cut down on need for mouse
Diffstat (limited to 'template')
-rw-r--r--template/en/default/admin/versions/create.html.tmpl2
-rw-r--r--template/en/default/admin/versions/edit.html.tmpl5
2 files changed, 4 insertions, 3 deletions
diff --git a/template/en/default/admin/versions/create.html.tmpl b/template/en/default/admin/versions/create.html.tmpl
index 8b4ba6473..2b75dabeb 100644
--- a/template/en/default/admin/versions/create.html.tmpl
+++ b/template/en/default/admin/versions/create.html.tmpl
@@ -36,7 +36,7 @@
<tr>
<th align="right"><label for="version">Version:</label></th>
<td><input id="version" size="64" maxlength="64" name="version"
- value=""></td>
+ value="" required autofocus></td>
</tr>
</table>
<input type="submit" id="create" value="Add">
diff --git a/template/en/default/admin/versions/edit.html.tmpl b/template/en/default/admin/versions/edit.html.tmpl
index 497d67e2e..1fc1cc52a 100644
--- a/template/en/default/admin/versions/edit.html.tmpl
+++ b/template/en/default/admin/versions/edit.html.tmpl
@@ -38,8 +38,9 @@
<tr>
<th class="field_label"><label for="version">Version:</label></th>
- <td><input id="version" size="64" maxlength="64" name="version" value="
- [%- version.name FILTER html %]"></td>
+ <td><input id="version" size="64" maxlength="64" name="version"
+ value="[% version.name FILTER html %]" required autofocus>
+
</tr>
<tr>
<th class="field_label"><label for="isactive">Enabled For [% terms.Bugs %]:</label></th>