Ignore:
Timestamp:
09/29/10 17:00:23 (14 years ago)
Author:
alexandrecorreia
Message:

Ticket #986 - Na adicao de contatos ja esta sendo enviado o aceite do convite.

File:
1 edited

Legend:

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

    r3264 r3308  
    370370                try 
    371371                { 
    372                 var _divPhoto = getElement( jid + '__photo' ); 
    373  
    374                 if( _divPhoto.style.backgroundImage.indexOf('photo.png') > 0 ) 
    375                 { 
    376                         var _imgUser  = path_jabberit + 'inc/WebService.php?' + Date.parse( new Date ); 
    377                                 _imgUser += '&photo_ldap=' + jid; 
    378  
    379                         _divPhoto.style.backgroundImage = 'url(' + _imgUser + ')'; 
    380                 } 
    381                 } 
    382                 catch(e) 
    383                 {} 
     372                        var _divPhoto = getElement( jid + '__photo' ); 
     373         
     374                        if( _divPhoto.style.backgroundImage.indexOf('photo.png') > 0 ) 
     375                        { 
     376                                var _imgUser  = path_jabberit + 'inc/WebService.php?' + Date.parse( new Date ); 
     377                                        _imgUser += '&photo_ldap=' + jid; 
     378         
     379                                _divPhoto.style.backgroundImage = 'url(' + _imgUser + ')'; 
     380                        } 
     381                }catch(e){} 
    384382        } 
    385383         
     
    416414                String = String.replace( /\*\*@#%/g             , " <img src='"+path_jabberit+"templates/default/images/smiles/14.gif'/> "); 
    417415                String = String.replace( /\(I\)/g               , " <img src='"+path_jabberit+"templates/default/images/smiles/15.gif'/> "); 
     416                String = String.replace( /C28I/g                , " <img src='"+path_jabberit+"templates/default/images/smiles/16.gif'/> "); 
    418417  
    419418                return String; 
     
    507506                                        searchUser( element.value );     
    508507                                else 
    509                                         alert('Your search argument must be longer than 3 characters.'); 
     508                                        alert( i18n.YOUR_SEARCH_ARGUMENT_MUST_BE_LONGER_THAN_3_CHARACTERS + '.' ); 
    510509                } 
    511510        } 
     
    884883                                case 'from': 
    885884                                         
    886                                         TrophyIM.setAutorization( jidTo, Base64.decode(this.getUserCurrent().jid), 'subscribed'); 
     885                                        TrophyIM.setAutorization( jidTo, Base64.decode(this.getUserCurrent().jid ), 'subscribe'); 
    887886                                break; 
    888887 
    889888                                case 'subscribe' : 
    890889                                         
    891                                         TrophyIM.setAutorization( jidTo, Base64.decode(this.getUserCurrent().jid), 'subscribed'); 
     890                                        TrophyIM.setAutorization( jidTo, Base64.decode(this.getUserCurrent().jid ), 'subscribed'); 
    892891                                break; 
    893892                                 
    894893                                case 'none' :                                    
    895894                                 
    896                                 TrophyIM.setAutorization( jidTo, Base64.decode(this.getUserCurrent().jid), 'subscribe'); 
     895                                TrophyIM.setAutorization( jidTo, Base64.decode(this.getUserCurrent().jid ), 'subscribe'); 
    897896                                break; 
    898897                                 
    899898                        case 'to' :                              
    900899                                 
    901                                 TrophyIM.setAutorization( jidTo, Base64.decode(this.getUserCurrent().jid), 'subscribed');                                
     900                                TrophyIM.setAutorization( jidTo, Base64.decode(this.getUserCurrent().jid ), 'subscribed');                               
    902901                                removeElement( getElement('itenContactNotification_' + jidTo ) );                                
    903902                                break; 
     
    905904                        case 'not-in-roster': 
    906905                                         
    907                                 TrophyIM.setAutorization( jidTo, Base64.decode(this.getUserCurrent().jid), 'subscribe'); 
     906                                TrophyIM.setAutorization( jidTo, Base64.decode(this.getUserCurrent().jid), 'subscribed'); 
    908907                                addUser.add( jidTo ); 
    909908                                        break; 
    910                                          
    911                                 default: 
    912                                          
    913                                         alert( "UNDEFINED : " + subscription ); 
    914909                } 
    915910        } 
Note: See TracChangeset for help on using the changeset viewer.