summaryrefslogtreecommitdiffstats
path: root/include/welcome.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2010-11-20 21:26:19 -0800
committerArun Persaud <arun@nubati.net>2010-11-20 21:26:19 -0800
commit0239f6892d6bdfc942d3ee16a5ff0aa9e4e74819 (patch)
tree3a5f11ac2621a8c377e45f953abc7da6ea189af0 /include/welcome.php
parentd421f362b8318cd7d016723da4f735fd6fa90a96 (diff)
downloade-DoKo-0239f6892d6bdfc942d3ee16a5ff0aa9e4e74819.tar.gz
e-DoKo-0239f6892d6bdfc942d3ee16a5ff0aa9e4e74819.tar.bz2
e-DoKo-0239f6892d6bdfc942d3ee16a5ff0aa9e4e74819.zip
added autofocus to login page
mixtures of html5+javascript for the moment
Diffstat (limited to 'include/welcome.php')
-rw-r--r--include/welcome.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/welcome.php b/include/welcome.php
index d5c3738..6c9a6bc 100644
--- a/include/welcome.php
+++ b/include/welcome.php
@@ -91,7 +91,12 @@ if($done==0)
<form action="index.php?action=login" method="post">
<fieldset>
<label for="email">Email:</label>
- <input type="text" id="email" name="email" size="20" maxlength="30" /> <br />
+ <input type="text" id="email" name="email" size="20" maxlength="30" autofocus /> <br />
+ <script>
+ if (!("autofocus" in document.createElement("input"))) {
+ document.getElementById("email").focus();
+ }
+ </script>
<label for="password">Password:</label>
<input type="password" id="password" name="password" size="20" maxlength="30" /> <br />
<input type="submit" class="submitbutton" name="login" value="login" />