Author: chanaka
Date: Thu Jan 31 03:20:23 2008
New Revision: 13202

Log:

set focus to username text box when the sign in button clicked

Modified:
   trunk/registry/modules/webapps/src/main/webapp/admin/header.jsp

Modified: trunk/registry/modules/webapps/src/main/webapp/admin/header.jsp
==============================================================================
--- trunk/registry/modules/webapps/src/main/webapp/admin/header.jsp     
(original)
+++ trunk/registry/modules/webapps/src/main/webapp/admin/header.jsp     Thu Jan 
31 03:20:23 2008
@@ -19,7 +19,7 @@
         <div class="error-message" id="loginMessage" 
style="display:none;"></div>
         <div class="info-message" id="loginProgress" 
style="display:none;"></div>
 
-        <form>
+        <form name="loginForm">
             <table class="form-table" border="0" cellspacing="0" 
cellpadding="0" style=" width:100%">
                 <tr>
                     <td>User Name:</td>
@@ -132,7 +132,7 @@
             <%
                 if (userName.equals(RegistryConstants.ANONYMOUS_USER)) {
             %>
-            <a href="#" 
onclick="prepareLoginBox();showHideCommon('popup-main'); 
showHideCommon('popup');">
+            <a href="#" 
onclick="prepareLoginBox();showHideCommon('popup-main'); 
showHideCommon('popup');document.loginForm.userName.focus();">
                 <img src="/wso2registry/admin/images/icon-logout.gif" 
border="0" align="top"  /> Sign in
             </a>
             <% } else {  %>

_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev

Reply via email to