Changeset 5485
- Timestamp:
- 02/09/12 15:34:33 (12 years ago)
- Location:
- trunk/expressoMail1_2/js
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/abas.js
r5459 r5485 139 139 } 140 140 } 141 142 141 currentTab=ID; 143 144 if( document.getElementById('to_'+ID) && document.getElementById('to_'+ID).type == "textarea"){145 document.getElementById('to_'+ID).focus();146 }147 148 142 RichTextEditor.setEditable(ID); 149 143 return ID; -
trunk/expressoMail1_2/js/main.js
r5470 r5485 1651 1651 else 1652 1652 RichTextEditor.setInitData(new_border_ID,make_forward_body(data.body, data.to, data.date, data.subject, data.to_all, data.cc)); 1653 //Element("to_" + new_border_ID).focus(); 1653 1654 1654 break; 1655 1655 case "new": … … 1675 1675 if (preferences.use_signature == "1") 1676 1676 RichTextEditor.setInitData(new_border_ID, '<div><br type="_moz"></div>' + signature); 1677 //Nao funcionava no Chrome 1678 //Element("to_" + new_border_ID).focus(); 1679 $('#to_'+new_border_ID).focus(); 1677 else 1678 $('#to_'+new_border_ID).focus(); 1680 1679 break; 1681 1680 case "edit": -
trunk/expressoMail1_2/js/rich_text_editor.js
r5460 r5485 338 338 if(this.plain[id] === true) 339 339 { 340 if($('#'+id) !== undefined) 340 if($('#'+id) !== undefined){ 341 341 $('#'+id).val(data); 342 if (reply === undefined) 343 $('#to_'+id).focus(); 344 } 342 345 else 343 346 setTimeout(function() {RichTextEditor.setInitData(id,data,reply,recursion); }, 500); … … 366 369 var divBr = '<div style="'+fontSize+fontFamily+'"><br type="_moz"></div>'; 367 370 368 if(reply === undefined) 371 if(reply === undefined){ 372 editor.on('insertHtml',function setFocus(e){ 373 setTimeout("$('#to_"+id+"').focus()",100); 374 } 375 ); 369 376 editor.insertHtml(divBr+divBr+data); 377 } 370 378 else if(reply == 'edit') 371 379 editor.insertHtml(data); … … 380 388 } 381 389 //Caso não for uma resposta votla o foco para o input to 382 if(reply === undefined)383 setTimeout("$('#to_"+id+"').focus()",100);390 //if(reply === undefined) 391 // setTimeout("$('#to_"+id+"').focus()",100); 384 392 385 393 }
Note: See TracChangeset
for help on using the changeset viewer.