changeset 1202:eef9e273347a beta

added focus to login register password reminder forms
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 03 Apr 2011 12:43:29 +0200
parents 7d2c16725be6
children 6832ef664673
files rhodecode/templates/login.html rhodecode/templates/password_reset.html rhodecode/templates/register.html
diffstat 3 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/templates/login.html	Sun Apr 03 11:44:19 2011 +0200
+++ b/rhodecode/templates/login.html	Sun Apr 03 12:43:29 2011 +0200
@@ -67,6 +67,11 @@
             <!-- end links -->
         </div>
         ${h.end_form()}
+        <script type="text/javascript">
+        YUE.onDOMReady(function(){
+        	YUD.get('username').focus();
+        })
+        </script>
     </div>
     <!-- end login -->
 </div>
\ No newline at end of file
--- a/rhodecode/templates/password_reset.html	Sun Apr 03 11:44:19 2011 +0200
+++ b/rhodecode/templates/password_reset.html	Sun Apr 03 12:43:29 2011 +0200
@@ -34,6 +34,11 @@
 	    	</div>
 	    </div>
 	    ${h.end_form()}
+        <script type="text/javascript">
+        YUE.onDOMReady(function(){
+            YUD.get('email').focus();
+        })
+        </script>	    
 	</div>    
    </div>
 
--- a/rhodecode/templates/register.html	Sun Apr 03 11:44:19 2011 +0200
+++ b/rhodecode/templates/register.html	Sun Apr 03 12:43:29 2011 +0200
@@ -82,6 +82,11 @@
 	    	</div>
 	    </div>
 	    ${h.end_form()}
+        <script type="text/javascript">
+        YUE.onDOMReady(function(){
+            YUD.get('username').focus();
+        })
+        </script>	    
 	</div>    
  </div>