Ignore:
Timestamp:
06/30/10 14:52:09 (14 years ago)
Author:
alexandrecorreia
Message:

Ticket #1116 - Melhorar a visualizacao/avisos de novos contatos e pedidos de autorizacao no modulo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jmessenger/js/jscode/loadIM.js

    r2977 r2983  
    195195        } 
    196196 
     197        function addNewUser() 
     198        { 
     199                addUser.newUser(); 
     200        } 
     201         
    197202        function autoStatus() 
    198203        { 
     
    765770                        var _element = arguments[0]  
    766771                        var _parent  = _element.parentNode; 
    767          
    768                         _parent.removeChild( _element ); 
     772                         
     773                        if( _element ) 
     774                                _parent.removeChild( _element ); 
    769775                } 
    770776        } 
     
    902908 
    903909                                TrophyIM.setAutorization( jidTo, Base64.decode(this.getUserCurrent().jid), 'subscribed'); 
     910                                 
     911                                removeElement( getElement('itenContactNotification_' + jidTo ) ); 
    904912                                         
    905913                        case 'subscribe' : 
     
    914922                } 
    915923        } 
    916          
    917         setTimeout(function() 
    918         { 
    919                         if( getElement('itenContactNotification_' + jidTo ) ) 
    920                                 loadscript.removeElement( getElement('itenContactNotification_' + jidTo ) ); 
    921         },500); 
    922      
    923924        } 
    924925         
     
    13341335        loadIM.prototype.actionButton           = actionButton; 
    13351336        loadIM.prototype.addContact                     = addContact; 
     1337        loadIM.prototype.addNewUser                     = addNewUser; 
    13361338        loadIM.prototype.clrAllContacts         = clrAllContacts; 
    13371339        loadIM.prototype.configEvents           = configEvents; 
Note: See TracChangeset for help on using the changeset viewer.