aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorPatrick Webster <noxwizard@phpbb.com>2010-12-19 20:43:35 -0600
committerAndreas Fischer <bantu@phpbb.com>2010-12-28 21:26:55 +0100
commit7f0f08bcc497d04746b209510a55ebfadcfe13bb (patch)
tree14d44f40911634a73c2ce6f9b252a7081617e3cf /phpBB
parentc298c9d6d0021931d08a3a189711117730b25278 (diff)
downloadforums-7f0f08bcc497d04746b209510a55ebfadcfe13bb.tar
forums-7f0f08bcc497d04746b209510a55ebfadcfe13bb.tar.gz
forums-7f0f08bcc497d04746b209510a55ebfadcfe13bb.tar.bz2
forums-7f0f08bcc497d04746b209510a55ebfadcfe13bb.tar.xz
forums-7f0f08bcc497d04746b209510a55ebfadcfe13bb.zip
[ticket/9953] Set focus to password on re-authentication
Sets the login focus to the password field when prompting for admin re-authentication, rather than the username field. PHPBB3-9953
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/styles/prosilver/template/login_body.html2
-rw-r--r--phpBB/styles/subsilver2/template/login_body.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/styles/prosilver/template/login_body.html b/phpBB/styles/prosilver/template/login_body.html
index 26e425a1d0..36c2eae349 100644
--- a/phpBB/styles/prosilver/template/login_body.html
+++ b/phpBB/styles/prosilver/template/login_body.html
@@ -2,7 +2,7 @@
<script type="text/javascript">
// <![CDATA[
- onload_functions.push('document.getElementById("{USERNAME_CREDENTIAL}").focus();');
+ onload_functions.push('document.getElementById("<!-- IF S_ADMIN_AUTH -->{PASSWORD_CREDENTIAL}<!-- ELSE -->{USERNAME_CREDENTIAL}<!-- ENDIF -->").focus();');
// ]]>
</script>
diff --git a/phpBB/styles/subsilver2/template/login_body.html b/phpBB/styles/subsilver2/template/login_body.html
index 90bbf8c139..262341e0c0 100644
--- a/phpBB/styles/subsilver2/template/login_body.html
+++ b/phpBB/styles/subsilver2/template/login_body.html
@@ -92,7 +92,7 @@
// <![CDATA[
(function()
{
- var elements = document.getElementsByName("{USERNAME_CREDENTIAL}");
+ var elements = document.getElementsByName("<!-- IF S_ADMIN_AUTH -->{PASSWORD_CREDENTIAL}<!-- ELSE -->{USERNAME_CREDENTIAL}<!-- ENDIF -->");
for (var i = 0; i < elements.length; ++i)
{
if (elements[i].tagName.toLowerCase() == 'input')