mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-06 07:35:29 +02:00
Merge branch 'ticket/noxwizard/9953' into develop-olympus
* ticket/noxwizard/9953: [ticket/9953] Set focus to password on re-authentication
This commit is contained in:
commit
410f1fdbc0
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
// <![CDATA[
|
// <![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>
|
</script>
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@
|
|||||||
// <![CDATA[
|
// <![CDATA[
|
||||||
(function()
|
(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)
|
for (var i = 0; i < elements.length; ++i)
|
||||||
{
|
{
|
||||||
if (elements[i].tagName.toLowerCase() == 'input')
|
if (elements[i].tagName.toLowerCase() == 'input')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user