diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2010-04-29 10:38:28 -0400 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2010-10-16 12:24:54 +0200 |
commit | 940191973fdbffffe51baf1dc5e6abc5bcdf0d75 (patch) | |
tree | 5a93472dd62ed7c7f2cd580d46b23287854627c0 /phpBB/styles/subsilver2 | |
parent | 6e9cf09adbc79d8327b1817096c3b16f50fc80d9 (diff) | |
download | forums-940191973fdbffffe51baf1dc5e6abc5bcdf0d75.tar forums-940191973fdbffffe51baf1dc5e6abc5bcdf0d75.tar.gz forums-940191973fdbffffe51baf1dc5e6abc5bcdf0d75.tar.bz2 forums-940191973fdbffffe51baf1dc5e6abc5bcdf0d75.tar.xz forums-940191973fdbffffe51baf1dc5e6abc5bcdf0d75.zip |
[ticket/7417] Also focus search keywords and username in subsilver2.
PHPBB3-7417
Diffstat (limited to 'phpBB/styles/subsilver2')
-rw-r--r-- | phpBB/styles/subsilver2/template/login_body.html | 19 | ||||
-rw-r--r-- | phpBB/styles/subsilver2/template/search_body.html | 19 |
2 files changed, 36 insertions, 2 deletions
diff --git a/phpBB/styles/subsilver2/template/login_body.html b/phpBB/styles/subsilver2/template/login_body.html index 503de9e69e..90bbf8c139 100644 --- a/phpBB/styles/subsilver2/template/login_body.html +++ b/phpBB/styles/subsilver2/template/login_body.html @@ -88,4 +88,21 @@ <div align="{S_CONTENT_FLOW_END}"><!-- INCLUDE jumpbox.html --></div> -<!-- INCLUDE overall_footer.html -->
\ No newline at end of file +<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 --> diff --git a/phpBB/styles/subsilver2/template/search_body.html b/phpBB/styles/subsilver2/template/search_body.html index a0ec30e9ba..763a229c83 100644 --- a/phpBB/styles/subsilver2/template/search_body.html +++ b/phpBB/styles/subsilver2/template/search_body.html @@ -75,4 +75,21 @@ <div align="{S_CONTENT_FLOW_END}"><!-- INCLUDE jumpbox.html --></div> -<!-- INCLUDE overall_footer.html -->
\ No newline at end of file +<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 --> |