mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-30 11:40:08 +02:00
[ticket/11795] Redo form elements auto-focus
Use data-focus attribute for forms to focus elements when document is loaded instead of adding JavaScript PHPBB3-11795
This commit is contained in:
@@ -1,16 +1,8 @@
|
||||
<!-- INCLUDE overall_header.html -->
|
||||
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
onload_functions.push(function () {
|
||||
document.getElementById("keywords").focus();
|
||||
});
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
<h2 class="solo">{L_SEARCH}</h2>
|
||||
|
||||
<form method="get" action="{S_SEARCH_ACTION}">
|
||||
<form method="get" action="{S_SEARCH_ACTION}" data-focus="keywords">
|
||||
|
||||
<div class="panel">
|
||||
<div class="inner">
|
||||
|
Reference in New Issue
Block a user