Ignore:
Timestamp:
05/16/11 15:22:33 (13 years ago)
Author:
alexandrecorreia
Message:

Ticket #1893 - Informado ao usuario mensagem sobre limitacao da criacao de salas de bate-papo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/jabberit_messenger/jmessenger/js/trophyim.mini.js

    r3332 r4420  
    1  
    21DOMObjects={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"\ 
    32                    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">\ 
     
    108107TrophyIM.rosterObj.setPresence(msg.getAttribute('from'),priority,show,status);} 
    109108return 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);} 
     114else 
     115{alert(" Informe ao seu Administrador ERRO : \n"+_errorMsg);}}}} 
     116else 
     117{if(xquery.length>0) 
    111118{for(var i=0;i<xquery.length;i++) 
    112119{var xmlns=xquery[i].getAttribute("xmlns");if(xmlns.indexOf("http://jabber.org/protocol/muc#user")==0) 
     
    121128{nodeUser.parentNode.removeChild(nodeUser);} 
    122129else 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) 
    124131{var checkTime=function(i) 
    125132{if(i<10)i="0"+i;return i;};var messageDate=function(_date) 
     
    396403{current=presence} 
    397404else 
    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"))) 
    399407{current=presence}}}} 
    400408return current;} 
Note: See TracChangeset for help on using the changeset viewer.