[ 
https://issues.apache.org/jira/browse/JSPWIKI-612?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Harry Metske resolved JSPWIKI-612.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0
                   2.8.3

Fixed in 3.0.0-svn-180 and 2.8.4-svn-1.

Thanks 高法正

(We need 2.8.4 as extra unreleased version in JIRA ?, and 2.8.3 should be 
marked as a released version right ?)

> There is a small bug in the 
> ...\JSPWiki\templates\default\admin\UserManagement.jsp
> ----------------------------------------------------------------------------------
>
>                 Key: JSPWIKI-612
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-612
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Default template
>    Affects Versions: 2.8.3
>         Environment: windows XP,IE6,IE7
>            Reporter: 高法正
>             Fix For: 2.8.3, 3.0
>
>
> In the UserManagement.jsp page,there is a select box like that:
>   
>       <select name="userid" id="userid" size="16" 
> onchange="javascript:refreshUserInfo()">
>          <c:forEach var="user" 
> items="${engine.userManager.userDatabase.wikiNames}">
>             <option><c:out value="${user.name}" escapeXml="true"/></option>
>          </c:forEach>
>       </select>
> and the is a javascript function, it want to get the value of the select box. 
> The function like that:
>       function refreshUserInfo()
>       {
>          var userid = $('userid').getValue();
>       
>          if( userid == '--New--' ) return;
>       
>          Wiki.jsonrpc("users.getUserInfo", [userid], function(userprofile){
>             $('loginname').value = userprofile.loginName;
>             $('loginid').value = userprofile.loginName;
>             $('fullname').value = userprofile.fullname;
>             $('email').value = userprofile.email;
>             
> $('lastmodified').setHTML(constructdate(userprofile.lastModified));
>             $('creationdate').setHTML(constructdate(userprofile.created));
>          });
>       }
> In the option tag of the select box,there is not "value" attribute,so the 
> code "$('userid').getValue()" get a empty String,
> then it will occur a js bug.
> But in the firefox3.5,the bug will not happen.
> Chage the select box like that:
>       <select name="userid" id="userid" size="16" 
> onchange="javascript:refreshUserInfo()">
>          <c:forEach var="user" 
> items="${engine.userManager.userDatabase.wikiNames}">
>             <option value="${user.name}"><c:out value="${user.name}" 
> escapeXml="true"/></option>
>          </c:forEach>
>       </select> 
> the bug gone.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to