]> git.wh0rd.org Git - tt-rss.git/commitdiff
focus input field in otp form
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 4 Sep 2012 08:08:50 +0000 (12:08 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 4 Sep 2012 08:08:50 +0000 (12:08 +0400)
classes/auth/internal.php

index 0254d60e0dc4aaed92c4f498177572a45ea714a1..214d77801d074e6f3a6985d40daa1c559098c7b0 100644 (file)
@@ -44,7 +44,9 @@ class Auth_Internal extends Auth_Base {
                                                                <input type="password" size="6" name="otp"/>
                                                                <input type="submit" value="Continue"/>
                                                        </form>
-                                                       </form>
+                                                       <script type="text/javascript">
+                                                               document.forms[0].otp.focus();
+                                                       </script>
                                                        <?php
                                                        exit;
                                                }