aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/subsilver2/template/search_body.html
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2010-04-29 10:38:28 -0400
committerAndreas Fischer <bantu@phpbb.com>2010-10-16 12:24:54 +0200
commit940191973fdbffffe51baf1dc5e6abc5bcdf0d75 (patch)
tree5a93472dd62ed7c7f2cd580d46b23287854627c0 /phpBB/styles/subsilver2/template/search_body.html
parent6e9cf09adbc79d8327b1817096c3b16f50fc80d9 (diff)
downloadforums-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/template/search_body.html')
-rw-r--r--phpBB/styles/subsilver2/template/search_body.html19
1 files changed, 18 insertions, 1 deletions
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 -->