Ignore:
Timestamp:
11/14/12 15:35:36 (11 years ago)
Author:
thiago
Message:

Ticket #3186 - Problema ao fechar mensagem que foi editada ou que tenha uma assinatura.

File:
1 edited

Legend:

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

    r7514 r7520  
    463463function watch_changes_in_msg(border_id) 
    464464{ 
     465    console.log("oi"); 
    465466        if (document.getElementById('border_id_'+border_id)) 
    466467        { 
     
    22462247        var content = $("#content_id_"+new_border_ID); 
    22472248 
     2249//It is verifying if the message was modified or not. 
     2250var btnSaveVerify = function(){ 
     2251    $("#content_id_"+currentTab+" .save").button("disable") 
     2252 
     2253 
     2254    $("#content_id_"+currentTab+" .to").keydown(function() {   
     2255        $("#content_id_"+currentTab+" .save").button("enable"); 
     2256     } ); 
     2257    $("#content_id_"+currentTab+" input[name=input_subject]").keydown(function() {   
     2258        $("#content_id_"+currentTab+" .save").button("enable"); 
     2259     } ); 
     2260 
     2261    RichTextEditor.keydown(new_border_ID); 
     2262} 
     2263 
    22482264switch(type){ 
    22492265                case "reply_without_history": 
     2266            btnSaveVerify(); 
     2267 
    22502268                        RichTextEditor.replyController = true; //Seta o editor como modo reply 
    22512269                        content.find('[name="input_to"]').val(data.to);                  
     
    22642282                        break; 
    22652283                case "reply_with_history": 
     2284            btnSaveVerify(); 
     2285 
    22662286                        RichTextEditor.replyController = true; //Seta o editor como modo reply  
    22672287                        title = "Re: " + html_entities(data.subject); 
     
    22832303                        break; 
    22842304                case "reply_to_all_without_history": 
     2305            btnSaveVerify(); 
     2306 
    22852307                        RichTextEditor.replyController = true; //Seta o editor como modo reply 
    22862308                        // delete user email from to_all array. 
     
    23292351                        break; 
    23302352                case "reply_to_all_with_history": 
     2353            btnSaveVerify();  
     2354 
    23312355                        RichTextEditor.replyController = true; //Seta o editor como modo reply  
    23322356                        //delete user email from to_all array. 
     
    23832407                        break; 
    23842408                case "forward": 
     2409            btnSaveVerify(); 
     2410 
    23852411                        title = "Fw: " + html_entities(data.subject); 
    23862412                        content.find(".subject").val("Fw: " + data.subject); 
     
    24062432                        break; 
    24072433                case "new": 
     2434         
     2435        btnSaveVerify(); 
     2436 
    24082437                        title = get_lang("New Message"); 
    24092438                        if(Element('msg_number').value) { 
     
    24352464                        break; 
    24362465                case "edit": 
    2437                  
     2466                btnSaveVerify(); 
     2467 
    24382468                        if(flagged == 'F') 
    24392469                                $(".important").addClass("expressomail-button-icon-ative"); 
     
    33593389function autoSave( ID ) 
    33603390{ 
     3391    $(".save").addClass("clicked"); 
     3392 
    33613393        saveButtonDisabled = $("#content_id_"+ID).find(".save").button('option','disabled'); 
    33623394    if(autoSaveControl.status[ID] === false && !saveButtonDisabled) 
     
    33663398function save_msg(border_id){ 
    33673399     
     3400    if(!$("content_id_"+border_id+" .save").hasClass("clicked")){ 
     3401        $("content_id_"+border_id+" .save").addClass("clicked"); 
     3402    } 
     3403 
     3404 
    33683405    //seta o status do auto_save = true 
    33693406   if (preferences.auto_save_draft == 1) 
Note: See TracChangeset for help on using the changeset viewer.