Changeset 3005


Ignore:
Timestamp:
07/06/10 17:46:36 (14 years ago)
Author:
alexandrecorreia
Message:

Ticket #1116 - Melhorias para a implementacao  http://xmpp.org/rfcs/rfc3921, secao 8.3, happy path

Location:
trunk/jmessenger
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/jmessenger/js/jscode/loadIM.js

    r2998 r3005  
    879879                { 
    880880                                case 'from': 
     881                                         
     882                                        TrophyIM.setAutorization( jidTo, Base64.decode(this.getUserCurrent().jid), 'subscribed'); 
     883                                break; 
     884 
    881885                                case 'subscribe' : 
    882886                                         
     
    891895                        case 'to' :                              
    892896                                 
    893                                 TrophyIM.setAutorization( jidTo, Base64.decode(this.getUserCurrent().jid), 'subscribed'); 
     897                                TrophyIM.setAutorization( jidTo, Base64.decode(this.getUserCurrent().jid), 'subscribed');                                
    894898                                removeElement( getElement('itenContactNotification_' + jidTo ) );                                
    895899                                break; 
     
    899903                                TrophyIM.setAutorization( jidTo, Base64.decode(this.getUserCurrent().jid), 'subscribe'); 
    900904                                addUser.add( jidTo ); 
    901                                  
    902905                                        break; 
    903906                                         
    904907                                default: 
    905908                                         
    906                                         alert( "EU NÃO SEI : " + subscription ); 
     909                                        alert( "UNDEFINED : " + subscription ); 
    907910                } 
    908911        } 
  • trunk/jmessenger/xsl/contactsList.xsl

    r2966 r3005  
    1111                 
    1212                <fieldset style="margin:2px; border:1px dotted #000000; height: 103px;"> 
    13                         <div id="{$idUser}__photo" style="position: absolute; left: 5px; top: 5px; width:60px; height:80px; background-image:url('{$path_jabberit}/templates/default/images/photo.png');"/> 
     13                        <div id="{$idUser}__photo" style="position: absolute; left: 5px; top: 5px; width:60px; height:80px; background-image:url('{$path_jabberit}templates/default/images/photo.png');"/> 
    1414 
    1515                        <div style="position: absolute; left: 80px; top: 8px;"> <xsl:value-of select="$full_name"/> </div> 
     
    1717                        <div style="position: absolute; top: 25px; left: 80px;"> 
    1818                                <button style="width:35px;" alt="Adicionar Contatos" title="Adicionar Contatos" onclick="loadscript.addContact();"> 
    19                                         <img src="{$path_jabberit}/templates/default/images/users.png"/> 
     19                                        <img src="{$path_jabberit}templates/default/images/users.png"/> 
    2020                                </button> 
    2121                                 
    22                                 <img style="height:15px; margin-left:10px;cursor:pointer;" alt="Minhas Preferências" title="Minhas Preferências" src="{$path_jabberit}/templates/default/images/preferences.png" onclick="loadscript.preferences();"/> 
     22                                <img style="height:15px; margin-left:10px;cursor:pointer;" alt="Minhas Preferências" title="Minhas Preferências" src="{$path_jabberit}templates/default/images/preferences.png" onclick="loadscript.preferences();"/> 
    2323                                 
    24                                 <img style="height:16px; margin-left:10px;cursor:pointer;" alt="Help" title="Help" src="{$path_jabberit}/templates/default/images/help.png" onclick="alert('2');" /> 
     24                                <img style="height:16px; margin-left:10px;cursor:pointer;" alt="Help" title="Help" src="{$path_jabberit}templates/default/images/help.png" onclick="alert('2');" /> 
    2525                         
    2626                        </div> 
    2727                         
    2828                        <div id="notification_new_users_jabber" style="display:none; position:absolute; top: 25px; left: 165px;"> 
    29                                 <img style="margin-left:15px;cursor:pointer;" alt="Novos Contatos" title="Novos Contatos" src="{$path_jabberit}/templates/default/images/alert_2.png" onclick="loadscript.windowNotificationNewUsers();" /> 
     29                                <img style="margin-left:15px;cursor:pointer;" alt="Novos Contatos" title="Novos Contatos" src="{$path_jabberit}templates/default/images/alert_2.png" onclick="loadscript.windowNotificationNewUsers();" /> 
    3030                        </div> 
    3131 
    3232                        <div style="position: absolute; left: 80px; top: 53px; cursor: pointer;" onclick="loadscript.setPresence(this);"> 
    33                                 <div id="statusJabberImg" style="background: url('{$path_jabberit}/templates/default/images/available.gif'); margin-left: 13px;width:15px; height:15px;"></div> 
     33                                <div id="statusJabberImg" style="background: url('{$path_jabberit}templates/default/images/available.gif'); margin-left: 13px;width:15px; height:15px;"></div> 
    3434                                <div id="statusJabberText" style="margin-top: -13px; margin-left: 30px;"> Disponível </div> 
    35                                 <div style="background-image: url('{$path_jabberit}/templates/default/images/arrow_down.gif'); margin-top: -13px; margin-left: 0px; width:15px; height:15px;"/> 
     35                                <div style="background-image: url('{$path_jabberit}templates/default/images/arrow_down.gif'); margin-top: -13px; margin-left: 0px; width:15px; height:15px;"/> 
    3636                        </div> 
    3737                         
    3838                        <div id="JabberIMRosterLoadingGif" style="position:absolute; left:136px; top:118px; display:block;"> 
    39                                         <img src='{$path_jabberit}/templates/default/images/loading.gif' style="width:20px; height:20px;"/> 
     39                                        <img src='{$path_jabberit}templates/default/images/loading.gif' style="width:20px; height:20px;"/> 
    4040                                        <span style="color:red;"> Carregando...!!</span> 
    4141                        </div> 
Note: See TracChangeset for help on using the changeset viewer.