Changeset 7593


Ignore:
Timestamp:
12/03/12 16:50:54 (11 years ago)
Author:
angelo
Message:

Ticket #3211 - Problema com a posicao do cursor ao encaminhar mensagem

Location:
trunk/expressoMail1_2/js
Files:
2 edited

Legend:

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

    r7591 r7593  
    24662466                                } 
    24672467                        } 
    2468                         content.find(".to").focus(); 
     2468                        RichTextEditor.dataReady(new_border_ID,'forward'); 
    24692469 
    24702470                        break; 
  • trunk/expressoMail1_2/js/rich_text_editor.js

    r7568 r7593  
    255255        CKEDITOR.instances[id].setData(data); 
    256256} 
     257cRichTextEditor.prototype.dataReady = function(id,reply) 
     258{ 
     259        var content = $("#content_id_"+id); 
     260        if (this.plain[id]){ 
     261                if (reply === 'forward') 
     262                        setTimeout(function(){content.find('.new-message-input.to').blur().focus();},400); 
     263        } 
     264        else{ 
     265                CKEDITOR.instances['body_'+id].on('dataReady',function(e){ 
     266                        if (reply === 'forward' ){       
     267                                setTimeout(function(){ 
     268                                                content.find('.new-message-input.to').blur().focus(); 
     269                                },400);  
     270                        } 
     271                }); 
     272        } 
     273} 
    257274cRichTextEditor.prototype.setInitData = function (id,data,reply,recursion, callback){ 
    258275        var content = $("#content_id_"+id); 
Note: See TracChangeset for help on using the changeset viewer.