Changeset 3116


Ignore:
Timestamp:
08/02/10 14:31:27 (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

    r3115 r3116  
    684684                        var show        = type; 
    685685                         
     686                        // Get Jid/From = idElement 
     687                        var _idElement = ( xquery[i].firstChild.getAttribute('jid') != null ) ? xquery[i].firstChild.getAttribute('jid') : xquery[i].parentNode.getAttribute('from') ; 
     688                                _idElement = nameChatRoom + "_UserChatRoom__" + _idElement; 
     689                           
    686690                        var _UserChatRoom = document.createElement("div"); 
    687                                 _UserChatRoom.id = nameChatRoom + "_UserChatRoom__" + xquery[i].firstChild.getAttribute('jid'); 
     691                                _UserChatRoom.id = _idElement; 
    688692                                _UserChatRoom.setAttribute("style","padding-left:18px ; margin:3px 0px 0px 2px; background: url('"+path_jabberit+"templates/default/images/" + show + ".gif')no-repeat center left"); 
    689693                                _UserChatRoom.appendChild( document.createTextNode(nickName) ); 
    690694 
    691                         var nodeUser = document.getElementById( nameChatRoom + "_UserChatRoom__" + xquery[i].firstChild.getAttribute('jid') );           
     695                        var nodeUser = document.getElementById( _idElement );            
    692696                         
    693697                        if( nodeUser == null && xquery[i].firstChild.getAttribute('jid') ) 
Note: See TracChangeset for help on using the changeset viewer.