Ignore:
Timestamp:
11/23/12 11:57:42 (11 years ago)
Author:
eduardow
Message:

Ticket #3186 - Problema no salvamento de rascunhos no Expresso Mail.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/expressoMail1_2/js/main.js

    r7554 r7557  
    20382038        var content = $("#content_id_"+new_border_ID); 
    20392039 
     2040//It is verifying if the message was modified or not.  
     2041var btnSaveVerify = function(){  
     2042    $("#content_id_"+currentTab+" .save").button("disable")  
     2043  
     2044  
     2045    $("#content_id_"+currentTab+" .to").keydown(function() {    
     2046        $("#content_id_"+currentTab+" .save").button("enable");  
     2047     } );  
     2048    $("#content_id_"+currentTab+" input[name=input_subject]").keydown(function() {    
     2049        $("#content_id_"+currentTab+" .save").button("enable");  
     2050     } );  
     2051  
     2052    RichTextEditor.keydown(new_border_ID);  
     2053}  
    20402054switch(type){ 
    20412055                case "reply_without_history": 
     2056                btnSaveVerify(); 
     2057 
    20422058                        RichTextEditor.replyController = true; //Seta o editor como modo reply 
    20432059                        content.find('[name="input_to"]').val(data.to);                  
     
    20562072                        break; 
    20572073                case "reply_with_history": 
     2074                btnSaveVerify(); 
     2075 
    20582076                        RichTextEditor.replyController = true; //Seta o editor como modo reply  
    20592077                        title = "Re: " + html_entities(data.subject); 
     
    20752093                        break; 
    20762094                case "reply_to_all_without_history": 
     2095                btnSaveVerify(); 
     2096 
    20772097                        RichTextEditor.replyController = true; //Seta o editor como modo reply 
    20782098                        // delete user email from to_all array. 
     
    21212141                        break; 
    21222142                case "reply_to_all_with_history": 
     2143                btnSaveVerify(); 
     2144 
    21232145                        RichTextEditor.replyController = true; //Seta o editor como modo reply  
    21242146                        //delete user email from to_all array. 
     
    21752197                        break; 
    21762198                case "forward": 
     2199                btnSaveVerify(); 
     2200 
    21772201                        title = "Fw: " + html_entities(data.subject); 
    21782202                        content.find(".subject").val("Fw: " + data.subject); 
     
    21982222                        break; 
    21992223                case "new": 
     2224                btnSaveVerify(); 
     2225 
    22002226                        title = get_lang("New Message"); 
    22012227                        if(Element('msg_number').value) { 
     
    22272253                        break; 
    22282254                case "edit": 
    2229                  
     2255                btnSaveVerify(); 
     2256 
    22302257                        if(flagged == 'F') 
    22312258                                $(".important").addClass("expressomail-button-icon-ative"); 
     
    30853112function autoSave( ID ) 
    30863113{ 
     3114        var content = $("#content_id_"+border_id);  
     3115        content.find(".save").button('option','disabled',true); 
     3116 
    30873117    saveButtonDisabled = $("#content_id_"+ID).find(".save").button('option','disabled');  
    30883118        if(autoSaveControl.status[ID] === false && !saveButtonDisabled) 
     
    30913121 
    30923122function save_msg(border_id){ 
    3093      
     3123 
    30943124    //seta o status do auto_save = true 
    30953125   if (preferences.auto_save_draft == 1) 
Note: See TracChangeset for help on using the changeset viewer.