Author: chanaka
Date: Thu Jan 31 03:21:46 2008
New Revision: 13203
Log:
set focus to the username text field when the sign in button clicked
Modified:
branches/registry/1_0/modules/webapps/src/main/webapp/admin/header.jsp
Modified: branches/registry/1_0/modules/webapps/src/main/webapp/admin/header.jsp
==============================================================================
--- branches/registry/1_0/modules/webapps/src/main/webapp/admin/header.jsp
(original)
+++ branches/registry/1_0/modules/webapps/src/main/webapp/admin/header.jsp
Thu Jan 31 03:21:46 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