Changeset 3097 for trunk/jabberit_messenger/jmessenger/js/trophyim.js
- Timestamp:
- 07/28/10 17:35:23 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/jabberit_messenger/jmessenger/js/trophyim.js
r3096 r3097 670 670 if( xmlns.indexOf("http://jabber.org/protocol/muc#user") == 0 ) 671 671 { 672 var nameChatRoom = xquery[i].parentNode.getAttribute('from') 672 var nameChatRoom = xquery[i].parentNode.getAttribute('from'); 673 673 nameChatRoom = Strophe.getBareJidFromJid(nameChatRoom); 674 674 … … 695 695 if( nodeUser == null && xquery[i].firstChild.getAttribute('jid') ) 696 696 { 697 nameChatRoom = document.getElementById(nameChatRoom + '__roomChat__participants'); 698 nameChatRoom.appendChild( _UserChatRoom ); 697 if( document.getElementById( nameChatRoom + '__roomChat__participants' ) != null ) 698 { 699 nameChatRoom = document.getElementById( nameChatRoom + '__roomChat__participants' ); 700 nameChatRoom.appendChild( _UserChatRoom ); 701 } 702 else 703 { 704 TrophyIM.makeChatRoom( nameChatRoom, "TESTE_MEU" ); 705 706 nameChatRoom = document.getElementById( nameChatRoom + '__roomChat__participants' ); 707 nameChatRoom.appendChild( _UserChatRoom ); 708 } 699 709 } 700 710 else
Note: See TracChangeset
for help on using the changeset viewer.