Ignore:
Timestamp:
05/17/10 15:24:31 (14 years ago)
Author:
alexandrecorreia
Message:

Ticket #986 - Implementando recebimento/envio de mensagens para mostrar as imagens smiles.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/jabberit_messenger/trophy_expresso/js/jscode/loadIM.js

    r2791 r2799  
    344344        } 
    345345         
    346         function getStatusMessage() 
    347         { 
    348                 return _statusMessage; 
    349         } 
    350          
    351346        function getShowContactsOffline() 
    352347        { 
     
    363358                return true; 
    364359        } 
    365  
     360         
     361        function getSmiles( String ) 
     362        { 
     363                String = String.replace( /:\)/g         , " <img src='"+path_jabberit+"templates/default/images/smiles/1.gif'/> "); 
     364                String = String.replace( /:-D/g         , " <img src='"+path_jabberit+"templates/default/images/smiles/2.gif'/> "); 
     365                String = String.replace( /;-\)/g        , " <img src='"+path_jabberit+"templates/default/images/smiles/3.gif'/> "); 
     366                String = String.replace( /=-O/g         , " <img src='"+path_jabberit+"templates/default/images/smiles/4.gif'/> "); 
     367                String = String.replace( /:P/g          , " <img src='"+path_jabberit+"templates/default/images/smiles/5.gif'/> "); 
     368                String = String.replace( /8-\)/g        , " <img src='"+path_jabberit+"templates/default/images/smiles/6.gif'/> "); 
     369                String = String.replace( /\>:o/g        , " <img src='"+path_jabberit+"templates/default/images/smiles/7.gif'/> "); 
     370                String = String.replace( /:-\$/g        , " <img src='"+path_jabberit+"templates/default/images/smiles/8.gif'/> "); 
     371                String = String.replace( /:s|:-X/g      , " <img src='"+path_jabberit+"templates/default/images/smiles/9.gif'/> "); 
     372                String = String.replace( /:-\(/g        , " <img src='"+path_jabberit+"templates/default/images/smiles/10.gif'/> "); 
     373                String = String.replace( /:\'\(/g       , " <img src='"+path_jabberit+"templates/default/images/smiles/11.gif'/> "); 
     374                String = String.replace( /:\|/g         , " <img src='"+path_jabberit+"templates/default/images/smiles/12.gif'/> "); 
     375                String = String.replace( /O:-\)/g       , " <img src='"+path_jabberit+"templates/default/images/smiles/13.gif'/> "); 
     376                String = String.replace( /\*\*@#%/g     , " <img src='"+path_jabberit+"templates/default/images/smiles/14.gif'/> "); 
     377                String = String.replace( /\(I\)/g       , " <img src='"+path_jabberit+"templates/default/images/smiles/15.gif'/> "); 
     378  
     379                return String; 
     380        } 
     381         
     382        function getStatusMessage() 
     383        { 
     384                return _statusMessage; 
     385        } 
     386         
    366387        function getUserCurrent() 
    367388        { 
     
    12151236        loadIM.prototype.getIsIE                        = getIsIE; 
    12161237        loadIM.prototype.getPhotoUser           = getPhotoUser; 
     1238        loadIM.prototype.getSmiles                      = getSmiles; 
    12171239        loadIM.prototype.getStatusMessage       = getStatusMessage; 
    12181240        loadIM.prototype.getShowContactsOffline = getShowContactsOffline; 
Note: See TracChangeset for help on using the changeset viewer.