mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 03:18:52 +00:00
[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
This commit is contained in:
parent
c298c9d6d0
commit
7f0f08bcc4
2 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Add table
Reference in a new issue