- Timestamp:
- 08/02/10 15:17:58 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/jabberit_messenger/jmessenger/js/trophyim.js
r3118 r3119 689 689 _UserChatRoom.id = _idElement; 690 690 _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 ) 696 696 { 697 697 if( document.getElementById( nameChatRoom + '__roomChat__participants' ) != null ) … … 702 702 else 703 703 { 704 TrophyIM.makeChatRoom( nameChatRoom, nameChatRoom.substring(0, nameChatRoom.indexOf('@')) 704 TrophyIM.makeChatRoom( nameChatRoom, nameChatRoom.substring(0, nameChatRoom.indexOf('@'))); 705 705 nameChatRoom = document.getElementById( nameChatRoom + '__roomChat__participants' ); 706 706 nameChatRoom.appendChild( _UserChatRoom ); … … 711 711 if( type == 'unavailable' ) 712 712 { 713 var nodeUser = "";714 715 if( xquery[i].firstChild.getAttribute('jid') != null )716 nodeUser = document.getElementById( nameChatRoom + "_UserChatRoom__" + xquery[i].firstChild.getAttribute('jid') );717 else718 nodeUser = document.getElementById( nameChatRoom + "_UserChatRoom__" + xquery[i].parentNode.getAttribute('to') );719 720 713 nodeUser.parentNode.removeChild( nodeUser ); 721 714 } 722 715 else if( show ) 723 716 { 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"); 726 718 } 727 719 }
Note: See TracChangeset
for help on using the changeset viewer.