Changeset 418 for tapas/web/backoffice


Ignore:
Timestamp:
03/19/12 13:41:13 (12 years ago)
Author:
vmipsl
Message:

gestion des pertes de login
redirection sur la page d'accueil pour chaque action

Location:
tapas/web/backoffice
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tapas/web/backoffice/user-script.jsp

    r416 r418  
    100100    handleSortUser: function( result ) 
    101101    { 
    102         this.jsonUsers = jQuery.parseJSON( result ).jSonUsers; 
    103         this.nbUsers = jQuery.parseJSON( result ).usersNumber; 
    104         this.displayUsers(); 
    105         this.clearAddOrModifyUserFields(); 
    106         this.updateAddUserButtonAndTitle(); 
     102        try 
     103        { 
     104            this.jsonUsers = jQuery.parseJSON( result ).jSonUsers; 
     105            this.nbUsers = jQuery.parseJSON( result ).usersNumber; 
     106            this.displayUsers(); 
     107            this.clearAddOrModifyUserFields(); 
     108            this.updateAddUserButtonAndTitle(); 
     109        } 
     110        catch( err ) 
     111        { 
     112            document.location.reload(); 
     113        } 
    107114    }, 
    108115 
  • tapas/web/backoffice/user.jsp

    r416 r418  
    185185            interfaceTexts["<%=UserRole.USER%>"] = '<spring:message code="label.role.user"/>'; 
    186186 
    187             interfaceTexts["<%=WebException.WebCode.USER_ALREADY_EXISTS%>"] = '<spring:message code="login.dataProtocol.alreadyExist"/>'; 
     187            interfaceTexts["<%=WebException.WebCode.USER_ALREADY_EXISTS%>"] = '<spring:message code="USER_ALREADY_EXISTS"/>'; 
    188188            interfaceTexts["<%=WebException.WebCode.ERROR_EMAIL_CANNOT_BE_SEND%>"] = '<spring:message code="bo.user.emailNotSend"/>'; 
    189189 
Note: See TracChangeset for help on using the changeset viewer.