Ignore:
Timestamp:
05/07/10 16:04:18 (14 years ago)
Author:
alexandrecorreia
Message:

Ticket #986 - Correcao para alguns erros de carregamento do javascript.

File:
1 edited

Legend:

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

    r2737 r2738  
    14511451                                else 
    14521452                                { 
    1453                                         if( loadscript.getStatusMessage() != "" ) 
     1453                                        if( TrophyIM.statusConn.connected ) 
    14541454                                        { 
    1455                                                 var _presence = $pres( ); 
    1456                                                 _presence.node.appendChild( Strophe.xmlElement( 'show' ) ).appendChild( Strophe.xmlTextNode( _type ) ); 
    1457                                                 _presence.node.appendChild( Strophe.xmlElement( 'status' ) ).appendChild( Strophe.xmlTextNode( loadscript.getStatusMessage() )); 
    1458                                                  
    1459                                                 TrophyIM.connection.send( _presence.tree() ); 
    1460                                         } 
    1461                                         else 
    1462                                         { 
    1463                                                 TrophyIM.connection.send($pres( ).c('show').t(_type).tree()); 
     1455                                                if( loadscript.getStatusMessage() != "" ) 
     1456                                                { 
     1457                                                        var _presence = $pres( ); 
     1458                                                        _presence.node.appendChild( Strophe.xmlElement( 'show' ) ).appendChild( Strophe.xmlTextNode( _type ) ); 
     1459                                                        _presence.node.appendChild( Strophe.xmlElement( 'status' ) ).appendChild( Strophe.xmlTextNode( loadscript.getStatusMessage() )); 
     1460                                                         
     1461                                                        TrophyIM.connection.send( _presence.tree() ); 
     1462                                                } 
     1463                                                else 
     1464                                                { 
     1465                                                        TrophyIM.connection.send($pres( ).c('show').t(_type).tree()); 
     1466                                                } 
    14641467                                        } 
    14651468                                } 
     
    14971500                        } 
    14981501 
    1499                         var _presence = $pres( ); 
    1500                         _presence.node.appendChild( Strophe.xmlElement( 'show' ) ).appendChild( Strophe.xmlTextNode( _show ) ); 
    1501                         _presence.node.appendChild( Strophe.xmlElement( 'status' ) ).appendChild( Strophe.xmlTextNode( _status ) ); 
    1502                          
    1503                         TrophyIM.connection.send( _presence.tree() ); 
     1502                        if ( TrophyIM.statusConn.connected ) 
     1503                        { 
     1504                                var _presence = $pres( ); 
     1505                                _presence.node.appendChild( Strophe.xmlElement( 'show' ) ).appendChild( Strophe.xmlTextNode( _show ) ); 
     1506                                _presence.node.appendChild( Strophe.xmlElement( 'status' ) ).appendChild( Strophe.xmlTextNode( _status ) ); 
     1507                                 
     1508                                TrophyIM.connection.send( _presence.tree() ); 
     1509                        } 
    15041510                } 
    15051511        }, 
Note: See TracChangeset for help on using the changeset viewer.