Ignore:
Timestamp:
02/09/12 15:34:33 (12 years ago)
Author:
angelo
Message:

Ticket #2485 - Otimizar acao de criar nova mensagem ou encaminhar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/js/rich_text_editor.js

    r5460 r5485  
    338338     if(this.plain[id] === true) 
    339339     { 
    340                  if($('#'+id) !== undefined) 
     340                 if($('#'+id) !== undefined){ 
    341341                        $('#'+id).val(data); 
     342                 if (reply === undefined)        
     343                        $('#to_'+id).focus(); 
     344         } 
    342345         else 
    343346                          setTimeout(function() {RichTextEditor.setInitData(id,data,reply,recursion); }, 500); 
     
    366369           var divBr = '<div style="'+fontSize+fontFamily+'"><br type="_moz"></div>'; 
    367370           
    368                     if(reply === undefined) 
     371                    if(reply === undefined){ 
     372                                editor.on('insertHtml',function setFocus(e){ 
     373                                                        setTimeout("$('#to_"+id+"').focus()",100); 
     374                                                } 
     375                                ); 
    369376                                editor.insertHtml(divBr+divBr+data); 
     377                        } 
    370378                        else if(reply == 'edit') 
    371379                                editor.insertHtml(data); 
     
    380388                   } 
    381389          //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); 
    384392   
    385393       } 
Note: See TracChangeset for help on using the changeset viewer.