- Timestamp:
- 08/04/10 14:46:38 (14 years ago)
- Location:
- branches/2.2/jabberit_messenger/jmessenger/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/jabberit_messenger/jmessenger/js/trophyim.js
r3129 r3132 647 647 { 648 648 var xquery = msg.getElementsByTagName("x"); 649 650 649 650 if ( xquery.length > 0 ) 651 651 { 652 652 for ( var i = 0; i < xquery.length; i++ ) … … 687 687 else 688 688 { 689 TrophyIM.makeChatRoom( nameChatRoom, nameChatRoom.substring(0, nameChatRoom.indexOf('@'))); 690 nameChatRoom = document.getElementById( nameChatRoom + '__roomChat__participants' ); 691 nameChatRoom.appendChild( _UserChatRoom ); 689 if( type != 'unavailable' ) 690 { 691 TrophyIM.makeChatRoom( nameChatRoom, nameChatRoom.substring(0, nameChatRoom.indexOf('@'))); 692 nameChatRoom = document.getElementById( nameChatRoom + '__roomChat__participants' ); 693 nameChatRoom.appendChild( _UserChatRoom ); 694 } 692 695 } 693 696 } … … 1088 1091 } 1089 1092 } 1090 1093 1091 1094 setTimeout( function() 1092 1095 { 1093 _winBuild( 'window_chat_room_' + jidChatRoom, 'remove');1096 _winBuild("window_chat_room_" + jidChatRoom, "remove"); 1094 1097 1095 }, 500 );1098 }, 650 ); 1096 1099 1097 1100 }); … … 1263 1266 joinChatRoom : function( roomName ) 1264 1267 { 1265 1268 var presence = $pres( {from: TrophyIM.connection.jid, to: roomName} ).c("x",{xmlns: Strophe.NS.MUC}); 1266 1269 1267 1270 TrophyIM.connection.send( presence ); -
branches/2.2/jabberit_messenger/jmessenger/js/trophyim.mini.js
r3129 r3132 108 108 {nameChatRoom=document.getElementById(nameChatRoom+'__roomChat__participants');nameChatRoom.appendChild(_UserChatRoom);} 109 109 else 110 {TrophyIM.makeChatRoom(nameChatRoom,nameChatRoom.substring(0,nameChatRoom.indexOf('@')));nameChatRoom=document.getElementById(nameChatRoom+'__roomChat__participants');nameChatRoom.appendChild(_UserChatRoom);}} 110 {if(type!='unavailable') 111 {TrophyIM.makeChatRoom(nameChatRoom,nameChatRoom.substring(0,nameChatRoom.indexOf('@')));nameChatRoom=document.getElementById(nameChatRoom+'__roomChat__participants');nameChatRoom.appendChild(_UserChatRoom);}}} 111 112 else 112 113 {if(type=='unavailable') … … 177 178 {TrophyIM.activeChatRoom.name[i]="";}}} 178 179 setTimeout(function() 179 {_winBuild( 'window_chat_room_'+jidChatRoom,'remove');},500);});loadscript.configEvents(_textarea,'onkeyup',function(e)180 {_winBuild("window_chat_room_"+jidChatRoom,"remove");},650);});loadscript.configEvents(_textarea,'onkeyup',function(e) 180 181 {if(e.keyCode==13) 181 182 {_send_message();}});var winChatRoom={id_window:"window_chat_room_"+arguments[0],barejid:jidChatRoom,width:500,height:450,top:TrophyIM.posWindow.top,left:TrophyIM.posWindow.left,draggable:true,visible:"display",resizable:true,zindex:loadscript.getZIndex(),title:titleWindow,closeAction:"hidden",content:_content}
Note: See TracChangeset
for help on using the changeset viewer.