Ignore:
Timestamp:
08/02/10 15:17:58 (14 years ago)
Author:
alexandrecorreia
Message:

Ticket #1091 - Implementado a busca de salas para bate-papo no novo modulo Expresso messenger XEP-0045-MUC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/jabberit_messenger/jmessenger/js/trophyim.js

    r3118 r3119  
    689689                                _UserChatRoom.id        = _idElement; 
    690690                                _UserChatRoom.setAttribute("style","padding-left:18px ; margin:3px 0px 0px 2px; background: url('"+path_jabberit+"templates/default/images/" + show + ".gif')no-repeat center left"); 
    691                                 _UserChatRoom.appendChild( document.createTextNode(nickName) ); 
    692  
    693                         var nodeUser = document.getElementById( _idElement );            
    694                          
    695                         if( nodeUser == null && xquery[i].firstChild.getAttribute('jid') ) 
     691                                _UserChatRoom.appendChild( document.createTextNode("NV - " + nickName) ); 
     692 
     693                        var nodeUser = document.getElementById( _idElement );    
     694                                 
     695                        if( nodeUser == null ) 
    696696                        { 
    697697                                if( document.getElementById( nameChatRoom + '__roomChat__participants' ) != null ) 
     
    702702                                else 
    703703                                { 
    704                                         TrophyIM.makeChatRoom( nameChatRoom, nameChatRoom.substring(0, nameChatRoom.indexOf('@')) ); 
     704                                        TrophyIM.makeChatRoom( nameChatRoom, nameChatRoom.substring(0, nameChatRoom.indexOf('@'))); 
    705705                                        nameChatRoom = document.getElementById( nameChatRoom + '__roomChat__participants' ); 
    706706                                        nameChatRoom.appendChild( _UserChatRoom ); 
     
    711711                                if( type == 'unavailable' ) 
    712712                                { 
    713                                         var nodeUser = ""; 
    714                                          
    715                                         if( xquery[i].firstChild.getAttribute('jid') != null ) 
    716                                                 nodeUser = document.getElementById( nameChatRoom + "_UserChatRoom__" + xquery[i].firstChild.getAttribute('jid') ); 
    717                                         else 
    718                                                 nodeUser = document.getElementById( nameChatRoom + "_UserChatRoom__" + xquery[i].parentNode.getAttribute('to') ); 
    719                                          
    720713                                        nodeUser.parentNode.removeChild( nodeUser ); 
    721714                                } 
    722715                                else if( show ) 
    723716                                { 
    724                                         var _UserChatRoom = document.getElementById( nameChatRoom + "_UserChatRoom__" + xquery[i].firstChild.getAttribute('jid') ) 
    725                                                 _UserChatRoom.setAttribute("style","padding-left:18px ; margin:3px 0px 0px 2px; background: url('"+path_jabberit+"templates/default/images/" + show + ".gif')no-repeat center left");    
     717                                        nodeUser.setAttribute("style","padding-left:18px ; margin:3px 0px 0px 2px; background: url('"+path_jabberit+"templates/default/images/" + show + ".gif')no-repeat center left");         
    726718                                } 
    727719                        } 
Note: See TracChangeset for help on using the changeset viewer.