Changeset 287 for trunk/instant_messenger/js/jabber.js
- Timestamp:
- 05/26/08 11:45:16 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/instant_messenger/js/jabber.js
r280 r287 121 121 var iframe = func.byId('iframe_' + from); 122 122 123 //if(func.byId('iframe_' + from) != null)124 //func.byId('iframe_' + from).parentNode.removeChild(func.byId('iframe_' + from));125 126 123 var win; 127 124 … … 142 139 var iframe = document.createElement('iframe'); 143 140 iframe.id = 'iframe_' + from; 144 iframe.style.width = '2 90px';145 iframe.style.height = ' 46px';141 iframe.style.width = '240px'; 142 iframe.style.height = '65px'; 146 143 iframe.style.border = '0'; 147 144 iframe.style.margin = '0'; … … 154 151 iframe.contentWindow.document.close(); 155 152 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); 156 168 157 169 } … … 327 339 function readVcard(pVcard) 328 340 { 341 329 342 switch(pVcard.getAttribute('id')) 330 343 { … … 338 351 { 339 352 if(cc.firstChild.nodeValue) 340 func.byId('im_layer_nickname').innerHTML = cc.firstChild.nodeValue; 353 func.byId('im_layer_nickname').innerHTML = cc.firstChild.nodeValue; 341 354 } 342 355 cc = cc.nextSibling;
Note: See TracChangeset
for help on using the changeset viewer.