Changeset 3107
- Timestamp:
- 07/30/10 17:04:10 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/jabberit_messenger/jmessenger/js/trophyim.js
r3102 r3107 663 663 { 664 664 var xquery = msg.getElementsByTagName("x"); 665 665 666 666 if ( xquery.length > 0 ) 667 667 { … … 677 677 var nickName = xquery[i].parentNode.getAttribute('from'); 678 678 nickName = Strophe.getResourceFromJid(nickName); 679 680 var type = ( xquery[i].parentNode.getAttribute('type') != null ) ? xquery[i].parentNode.getAttribute('type') : 'available' ; 679 681 680 var type = xquery[i].parentNode.getAttribute('type') ? xquery[i].parentNode.getAttribute('type') : 'available' ; 681 682 var show = ( xquery[i].parentNode.firstChild.firstChild != null ) ? xquery[i].parentNode.firstChild.firstChild.nodeValue : type ; 682 var show = ( xquery[i].parentNode.firstChild.firstChild.nodeName.toLowerCase() == "show" ) ? xquery[i].parentNode.firstChild.firstChild.nodeValue : type ; 683 683 684 684 if( xquery[i].firstChild.getAttribute('jid') ) … … 693 693 _UserChatRoom.appendChild( document.createTextNode(nickName) ); 694 694 695 var nodeUser = document.getElementById( nameChatRoom + "_UserChatRoom__" + xquery[i].firstChild.getAttribute('jid') );695 var nodeUser = document.getElementById( nameChatRoom + "_UserChatRoom__" + xquery[i].firstChild.getAttribute('jid') ); 696 696 697 697 if( nodeUser == null && xquery[i].firstChild.getAttribute('jid') )
Note: See TracChangeset
for help on using the changeset viewer.