- Timestamp:
- 05/16/11 15:22:33 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/jabberit_messenger/jmessenger/js/trophyim.mini.js
r3332 r4420 1 2 1 DOMObjects={xmlParse:function(xmlString){var xmlObj=this.xmlRender(xmlString);if(xmlObj){try{if(this.processor==undefined){this.processor=new XSLTProcessor();this.processor.importStylesheet(this.xmlRender('<xsl:stylesheet version="1.0"\ 3 2 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">\ … … 108 107 TrophyIM.rosterObj.setPresence(msg.getAttribute('from'),priority,show,status);} 109 108 return true;},onPresenceChatRoom:function(msg) 110 {var xquery=msg.getElementsByTagName("x");if(xquery.length>0) 109 {var xquery=msg.getElementsByTagName("x");var _error=msg.getElementsByTagName("error");if(_error.length>0) 110 {for(var i=0;i<_error.length;i++) 111 {if(_error[i].getElementsByTagName("text")) 112 {var _errorMsg=Strophe.getText(_error[i].getElementsByTagName("text")[0]);if(_errorMsg=="Room creation is denied by service policy") 113 {alert(i18n.ROOM_CREATION_IS_DENIED_BY_SERVICE_POLICY);} 114 else 115 {alert(" Informe ao seu Administrador ERRO : \n"+_errorMsg);}}}} 116 else 117 {if(xquery.length>0) 111 118 {for(var i=0;i<xquery.length;i++) 112 119 {var xmlns=xquery[i].getAttribute("xmlns");if(xmlns.indexOf("http://jabber.org/protocol/muc#user")==0) … … 121 128 {nodeUser.parentNode.removeChild(nodeUser);} 122 129 else if(show) 123 {nodeUser.style.backgroundImage='url("'+path_jabberit+'templates/default/images/'+show+'.gif")';}}}}}} ,onMessage:function(msg)130 {nodeUser.style.backgroundImage='url("'+path_jabberit+'templates/default/images/'+show+'.gif")';}}}}}}},onMessage:function(msg) 124 131 {var checkTime=function(i) 125 132 {if(i<10)i="0"+i;return i;};var messageDate=function(_date) … … 396 403 {current=presence} 397 404 else 398 {if(presence['priority']>current['priority']&&((presence['show']=="chat"||presence['show']=="available")||(current['show']!="chat"||current['show']!="available"))) 405 {if(presence['priority']>current['priority']&&((presence['show']=="chat" 406 ||presence['show']=="available")||(current['show']!="chat"||current['show']!="available"))) 399 407 {current=presence}}}} 400 408 return current;}
Note: See TracChangeset
for help on using the changeset viewer.