Ignore:
Timestamp:
05/26/08 11:45:16 (16 years ago)
Author:
niltonneto
Message:

Verificar Wiki/Trac? do módulo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/instant_messenger/js/jabber.js

    r280 r287  
    121121                                var iframe = func.byId('iframe_' + from); 
    122122 
    123                                 //if(func.byId('iframe_' + from) != null) 
    124                                         //func.byId('iframe_' + from).parentNode.removeChild(func.byId('iframe_' + from)); 
    125  
    126123                                var win; 
    127124 
     
    142139                                        var iframe = document.createElement('iframe'); 
    143140                                        iframe.id = 'iframe_' + from; 
    144                                         iframe.style.width = '290px'; 
    145                                         iframe.style.height = '46px'; 
     141                                        iframe.style.width = '240px'; 
     142                                        iframe.style.height = '65px'; 
    146143                                        iframe.style.border = '0'; 
    147144                                        iframe.style.margin = '0'; 
     
    154151                                        iframe.contentWindow.document.close(); 
    155152                                        iframe.contentWindow.document.designMode = "On"; 
     153 
     154                                        function getEnter(e) 
     155                                        { 
     156                                                if ( !(e.shiftKey) && (e.keyCode == 13) ) 
     157                                                { 
     158                                                        if ( e.type.indexOf('keydown') != -1 ) 
     159                                                                im.SendMessage(from); 
     160                                                        else 
     161                                                                iframe.contentWindow.document.body.innerHTML = ''; 
     162                                                        return false; 
     163                                                } 
     164                                        } 
     165 
     166                                        func.attachEvent(iframe.contentWindow, 'onkeydown', getEnter); 
     167                                        func.attachEvent(iframe.contentWindow, 'onkeyup', getEnter); 
    156168 
    157169                                } 
     
    327339                function readVcard(pVcard) 
    328340                { 
     341                         
    329342                        switch(pVcard.getAttribute('id')) 
    330343                        { 
     
    338351                                                { 
    339352                                                        if(cc.firstChild.nodeValue) 
    340                                                                 func.byId('im_layer_nickname').innerHTML = cc.firstChild.nodeValue;                                                              
     353                                                                func.byId('im_layer_nickname').innerHTML = cc.firstChild.nodeValue; 
    341354                                                } 
    342355                                                cc = cc.nextSibling; 
Note: See TracChangeset for help on using the changeset viewer.