Ignore:
Timestamp:
05/19/10 17:07:55 (14 years ago)
Author:
alexandrecorreia
Message:

Ticket #986 - Corrigido para nao deletar a conexao quando nao existe.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/jabberit_messenger/trophy_expresso/js/trophyim.js

    r2827 r2828  
    494494                if( status == Strophe.Status.CONNECTED ) 
    495495                { 
    496                         loadscript.setStatusJabber('Disponï¿œvel','available'); 
     496                        loadscript.setStatusJabber('Disponível','available'); 
    497497                        TrophyIM.statusConn.connected = true; 
    498498            TrophyIM.showClient(); 
     
    716716                { 
    717717                        if( chatBox != null ) 
    718                                 state = contact + TrophyIM.getChatState(msg);                    
     718                                state = TrophyIM.getChatState(msg);                      
    719719                } 
    720720                 
     
    725725                 
    726726                if (chatBox != null) { 
    727                         chatBox.innerHTML = "<font style='font-weight:bold; color:grey; margin-left: 5px; float:left;'>" + state + "</font>"; 
     727                        chatBox.innerHTML = "<font style='font-weight:bold; color:grey; margin-left: 5px; float:right;'>" + state + "</font>"; 
    728728                        var clearChatState = setTimeout(clearChatState, 2000); 
    729729                } 
     
    744744                if ( state.length > 0 ) 
    745745                { 
    746                 return ' está inativo...'; 
     746                return ' está inativo...'; 
    747747                } 
    748748                else 
     
    758758                if ( state.length > 0 ) 
    759759                { 
    760                         return ' está digitando...'; 
     760                        return ' está digitando...'; 
    761761                                } 
    762762                else 
     
    765765                        if ( state.length > 0 ) 
    766766                        { 
    767                                 return ' está parado...'; 
     767                                return ' está parado...'; 
    768768                                        } 
    769769                                } 
     
    12491249                                                        case "none" : 
    12501250                                                                 
    1251                                                                 paramsContact.status            = " (( PEDIR AUTORIZAÇÃO ! )) "; 
     1251                                                                paramsContact.status            = " (( PEDIR AUTORIZAÇÃO ! )) "; 
    12521252                                                                paramsContact.statusColor       = "red"; 
    12531253                                                                break; 
     
    12551255                                                        case "to" : 
    12561256                                                                 
    1257                                                                 paramsContact.status            = " (( CONTATO PEDE AUTORIZAÇÃO ! )) "; 
     1257                                                                paramsContact.status            = " (( CONTATO PEDE AUTORIZAÇÃO ! )) "; 
    12581258                                                                paramsContact.statusColor       = "orange"; 
    12591259                                                                break; 
     
    12671267                                                        case "subscribe" :  
    12681268                                                                 
    1269                                                                 paramsContact.status            = " (( AUTORIZAÇÃO ENVIADA ! )) "; 
     1269                                                                paramsContact.status            = " (( AUTORIZAÇÃO ENVIADA ! )) "; 
    12701270                                                                paramsContact.statusColor       = "red";         
    12711271                                                                break; 
     
    12731273                                                        case "not-in-roster" : 
    12741274                                                                 
    1275                                                                 paramsContact.status            = " (( QUERO ADICIONÁ-LO(A) ! POSSO ? )) "; 
     1275                                                                paramsContact.status            = " (( QUERO ADICIONÁ-LO(A) ! POSSO ? )) "; 
    12761276                                                                paramsContact.statusColor       = "orange";      
    12771277                                                                break; 
     
    13401340                                                        case "none" : 
    13411341                                                                 
    1342                                                                 status          = " (( PEDIR AUTORIZAÇÃO ! )) "; 
     1342                                                                status          = " (( PEDIR AUTORIZAÇÃOO ! )) "; 
    13431343                                                                statusColor     = "red"; 
    13441344                                                                break; 
     
    13461346                                                        case "to" : 
    13471347                                                                 
    1348                                                                 status          = " (( CONTATO PEDE AUTORIZAÇÃO ! )) "; 
     1348                                                                status          = " (( CONTATO PEDE AUTORIZAÇÃOO ! )) "; 
    13491349                                                                statusColor     = "orange"; 
    13501350                                                                break; 
     
    13581358                                                        case "subscribe" :  
    13591359                                                                 
    1360                                                                 status          = " (( AUTORIZAÇÃO ENVIADA ! )) "; 
     1360                                                                status          = " (( AUTORIZAÇÃOO ENVIADA ! )) "; 
    13611361                                                                statusColor     = "red";         
    13621362                                                                break; 
     
    13641364                                                        case "not-in-roster" : 
    13651365                                                                 
    1366                                                                 status          = " (( QUERO ADICIONÁ-LO(A) ! POSSO ? )) "; 
     1366                                                                status          = " (( QUERO ADICIONÁ-LO(A) ! POSSO ? )) "; 
    13671367                                                                statusColor     = "orange";      
    13681368                                                                break; 
Note: See TracChangeset for help on using the changeset viewer.