Changeset 3264


Ignore:
Timestamp:
09/17/10 17:26:38 (10 years ago)
Author:
alexandrecorreia
Message:

Ticket #1333 - Correcao do titulo das salas de bate papo quando existem caracteres especiais

Location:
branches/2.2/jabberit_messenger/jmessenger/js
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/jabberit_messenger/jmessenger/js/jscode/loadIM.js

    r3228 r3264  
    13491349                        var nameRoom    = _room.getAttribute( 'from' ); 
    13501350 
    1351                         _ROOM.setAttribute( 'nameRoom', (nameRoom.substring(0, nameRoom.indexOf("@"))).toUpperCase() ); 
     1351                        _ROOM.setAttribute( 'nameRoom', unescape((nameRoom.substring(0, nameRoom.indexOf("@"))).toUpperCase()) ); 
    13521352                        _JIDROOM.appendChild( _xml.createTextNode(nameRoom) ); 
    13531353                        _ROOM.appendChild( _JIDROOM ); 
  • branches/2.2/jabberit_messenger/jmessenger/js/jscode/loadIM.mini.js

    r3228 r3264  
    280280{_roomsCount++;var _ROOM=_xml.createElement('room') 
    281281var _JIDROOM=_xml.createElement('jidRoom') 
    282 var nameRoom=_room.getAttribute('from');_ROOM.setAttribute('nameRoom',(nameRoom.substring(0,nameRoom.indexOf("@"))).toUpperCase());_JIDROOM.appendChild(_xml.createTextNode(nameRoom));_ROOM.appendChild(_JIDROOM);var _fields=_room.getElementsByTagName('field');for(var f=0;f<_fields.length;f++) 
     282var nameRoom=_room.getAttribute('from');_ROOM.setAttribute('nameRoom',unescape((nameRoom.substring(0,nameRoom.indexOf("@"))).toUpperCase()));_JIDROOM.appendChild(_xml.createTextNode(nameRoom));_ROOM.appendChild(_JIDROOM);var _fields=_room.getElementsByTagName('field');for(var f=0;f<_fields.length;f++) 
    283283{if(_fields[f].getAttribute('var')) 
    284284{if(_fields[f].firstChild.hasChildNodes()&&_fields[f].getAttribute('var')=='muc#roominfo_description') 
  • branches/2.2/jabberit_messenger/jmessenger/js/strophe.js

    r3261 r3264  
    458458 */ 
    459459 
    460 /* 
    461460if (!Array.prototype.indexOf) 
    462461{ 
     
    480479    }; 
    481480} 
    482 */ 
    483481 
    484482/* All of the Strophe globals are defined in this special function below so 
  • branches/2.2/jabberit_messenger/jmessenger/js/strophe.mini.js

    r3261 r3264  
    2424{var func=this;return function(){var newargs=[arg];for(var i=0;i<arguments.length;i++){newargs.push(arguments[i]);} 
    2525return func.apply(this,newargs);};};} 
     26if(!Array.prototype.indexOf) 
     27{Array.prototype.indexOf=function(elt) 
     28{var len=this.length;var from=Number(arguments[1])||0;from=(from<0)?Math.ceil(from):Math.floor(from);if(from<0){from+=len;} 
     29for(;from<len;from++){if(from in this&&this[from]===elt){return from;}} 
     30return-1;};} 
    2631(function(callback){var Strophe;function $build(name,attrs){return new Strophe.Builder(name,attrs);} 
    2732function $msg(attrs){return new Strophe.Builder("message",attrs);} 
  • branches/2.2/jabberit_messenger/jmessenger/js/trophyim.js

    r3228 r3264  
    10371037    { 
    10381038        var jidChatRoom = arguments[0]; 
    1039         var titleWindow = "ChatRoom - " + arguments[1]; 
     1039        var titleWindow = "ChatRoom - " + unescape(arguments[1]); 
    10401040         
    10411041        var paramsChatRoom = 
  • branches/2.2/jabberit_messenger/jmessenger/js/trophyim.mini.js

    r3228 r3264  
    169169setComposing();}});var winChatBox={id_window:"window_chat_area_"+barejid,barejid:barejid,width:387,height:375,top:TrophyIM.posWindow.top,left:TrophyIM.posWindow.left,draggable:true,visible:"display",resizable:true,zindex:loadscript.getZIndex(),title:titleWindow,closeAction:"hidden",content:_content} 
    170170_win=_winBuild(winChatBox);loadscript.notification(barejid);loadscript.getPhotoUser(barejid);_textarea.focus();return(_messages=_win.content().firstChild);},makeChatRoom:function() 
    171 {var jidChatRoom=arguments[0];var titleWindow="ChatRoom - "+arguments[1];var paramsChatRoom={'idChatRoom':jidChatRoom+"__roomChat",'jidTo':jidChatRoom,'lang_Send':i18n.SEND,'lang_Leave_ChatRoom':i18n.LEAVE_CHATROOM,'path_jabberit':path_jabberit};TrophyIM.posWindow.top=TrophyIM.posWindow.top+10;if(TrophyIM.posWindow.top>200) 
     171{var jidChatRoom=arguments[0];var titleWindow="ChatRoom - "+unescape(arguments[1]);var paramsChatRoom={'idChatRoom':jidChatRoom+"__roomChat",'jidTo':jidChatRoom,'lang_Send':i18n.SEND,'lang_Leave_ChatRoom':i18n.LEAVE_CHATROOM,'path_jabberit':path_jabberit};TrophyIM.posWindow.top=TrophyIM.posWindow.top+10;if(TrophyIM.posWindow.top>200) 
    172172TrophyIM.posWindow.top=100;TrophyIM.posWindow.left=TrophyIM.posWindow.left+5;if(TrophyIM.posWindow.left>455) 
    173173TrophyIM.posWindow.left=400;var _content=document.createElement('div');_content.innerHTML=loadscript.parse("chat_room","chatRoom.xsl",paramsChatRoom);_content=_content.firstChild;var _messages=_content.firstChild.firstChild;var _textarea=_content.getElementsByTagName('textarea').item(0);var _send=_content.getElementsByTagName('input').item(0);var _leaveChatRoom=_content.getElementsByTagName('input').item(1);var _send_message=function() 
Note: See TracChangeset for help on using the changeset viewer.