aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/subsilver2
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2010-10-17 21:30:40 +0200
committerIgor Wiedler <igor@wiedler.ch>2010-10-17 21:30:40 +0200
commit6582455e5d2b207d7d497766514529d82201339d (patch)
treeb6020814e9ab2e19bc1572d1ad46135206d0f913 /phpBB/styles/subsilver2
parent0aecbfa806aae1d392230374a06c4f917df066ec (diff)
parent940191973fdbffffe51baf1dc5e6abc5bcdf0d75 (diff)
downloadforums-6582455e5d2b207d7d497766514529d82201339d.tar
forums-6582455e5d2b207d7d497766514529d82201339d.tar.gz
forums-6582455e5d2b207d7d497766514529d82201339d.tar.bz2
forums-6582455e5d2b207d7d497766514529d82201339d.tar.xz
forums-6582455e5d2b207d7d497766514529d82201339d.zip
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.
Diffstat (limited to 'phpBB/styles/subsilver2')
-rw-r--r--phpBB/styles/subsilver2/template/login_body.html19
-rw-r--r--phpBB/styles/subsilver2/template/search_body.html19
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 -->