mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-05 23:25:30 +02:00
Merge branch 'ticket/bantu/7417' into develop-olympus
* ticket/bantu/7417: [ticket/7417] Also focus search keywords and username in subsilver2. [ticket/7417] Focus username field when prosilver login page is loaded. [ticket/7417] Focus search keywords field when prosilver search page is loaded.
This commit is contained in:
commit
6582455e5d
@ -1,5 +1,11 @@
|
|||||||
<!-- INCLUDE overall_header.html -->
|
<!-- INCLUDE overall_header.html -->
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
// <![CDATA[
|
||||||
|
onload_functions.push('document.getElementById("{USERNAME_CREDENTIAL}").focus();');
|
||||||
|
// ]]>
|
||||||
|
</script>
|
||||||
|
|
||||||
<form action="{S_LOGIN_ACTION}" method="post" id="login">
|
<form action="{S_LOGIN_ACTION}" method="post" id="login">
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<div class="inner"><span class="corners-top"><span></span></span>
|
<div class="inner"><span class="corners-top"><span></span></span>
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
<!-- INCLUDE overall_header.html -->
|
<!-- INCLUDE overall_header.html -->
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
// <![CDATA[
|
||||||
|
onload_functions.push('document.getElementById("keywords").focus();');
|
||||||
|
// ]]>
|
||||||
|
</script>
|
||||||
|
|
||||||
<h2 class="solo">{L_SEARCH}</h2>
|
<h2 class="solo">{L_SEARCH}</h2>
|
||||||
|
|
||||||
<form method="get" action="{S_SEARCH_ACTION}">
|
<form method="get" action="{S_SEARCH_ACTION}">
|
||||||
@ -119,4 +125,4 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|
||||||
<!-- INCLUDE overall_footer.html -->
|
<!-- INCLUDE overall_footer.html -->
|
||||||
|
@ -88,4 +88,21 @@
|
|||||||
|
|
||||||
<div align="{S_CONTENT_FLOW_END}"><!-- INCLUDE jumpbox.html --></div>
|
<div align="{S_CONTENT_FLOW_END}"><!-- INCLUDE jumpbox.html --></div>
|
||||||
|
|
||||||
<!-- INCLUDE overall_footer.html -->
|
<script type="text/javascript">
|
||||||
|
// <![CDATA[
|
||||||
|
(function()
|
||||||
|
{
|
||||||
|
var elements = document.getElementsByName("{USERNAME_CREDENTIAL}");
|
||||||
|
for (var i = 0; i < elements.length; ++i)
|
||||||
|
{
|
||||||
|
if (elements[i].tagName.toLowerCase() == 'input')
|
||||||
|
{
|
||||||
|
elements[i].focus();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
// ]]>
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!-- INCLUDE overall_footer.html -->
|
||||||
|
@ -75,4 +75,21 @@
|
|||||||
|
|
||||||
<div align="{S_CONTENT_FLOW_END}"><!-- INCLUDE jumpbox.html --></div>
|
<div align="{S_CONTENT_FLOW_END}"><!-- INCLUDE jumpbox.html --></div>
|
||||||
|
|
||||||
<!-- INCLUDE overall_footer.html -->
|
<script type="text/javascript">
|
||||||
|
// <![CDATA[
|
||||||
|
(function()
|
||||||
|
{
|
||||||
|
var elements = document.getElementsByName("keywords");
|
||||||
|
for (var i = 0; i < elements.length; ++i)
|
||||||
|
{
|
||||||
|
if (elements[i].tagName.toLowerCase() == 'input')
|
||||||
|
{
|
||||||
|
elements[i].focus();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
// ]]>
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!-- INCLUDE overall_footer.html -->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user