Changeset 7560 for branches/2.4


Ignore:
Timestamp:
11/23/12 13:34:28 (11 years ago)
Author:
eduardow
Message:

Ticket #3186 - Problema no salvamento e problema ao abrir uma msg apos salvar.

Location:
branches/2.4/expressoMail1_2/js
Files:
2 edited

Legend:

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

    r7558 r7560  
    17181718 
    17191719                td_element2 = createTDElement(0,1,"td_msg"); 
    1720                 if (headers_msgs.attachment && (headers_msgs.attachment == 1 || headers_msgs.attachment.number_attachments> 0)) 
     1720                if (headers_msgs.attachment == 1) 
    17211721                        td_element2.innerHTML = "<img src ='templates/"+template+"/images/clip.gif' >"; 
    17221722 
     
    46224622        }).click(function(){ 
    46234623                save_msg(ID); 
     4624        refresh(); 
    46244625        }) 
    46254626        //BOTAO CONF. LEITURA 
     
    47214722                                var upload = $(DataLayer.render("../prototype/modules/mail/templates/attachment_add_itemlist.ejs", {file : attach}));                            
    47224723                                upload.find('.att-box-delete').click(function(){ 
     4724                                $("#content_id_"+currentTab+" .save").button("enable"); 
    47234725                                        var idAttach = $(this).parent().find('input[name="fileId[]"]').val(); 
    47244726                                        fileUploadMSG.find(' .attachments-list').find('input[value="'+idAttach+'"]').remove(); 
     
    47874789                }, 
    47884790                done: function(e, data){ 
     4791                        $("#content_id_"+currentTab+" .save").button("enable"); 
    47894792            var attach_box = fileUploadMSG.find('.att-box-loading:first').parents('.att-box'); 
    47904793            var attach = { 
     
    49024905                                                attach.fileSize = formatBytes(onceOpenedMessages[folder_name][message_number].size); 
    49034906                                                var upload = $(DataLayer.render("../prototype/modules/mail/templates/attachment_add_itemlist.ejs", {file : attach})); 
    4904                                                 upload.find('.att-box-loading').remove(); 
     4907                                                $("#content_id_"+currentTab+" .save").button("enable");  
     4908                            upload.find('.att-box-loading').remove(); 
    49054909                                                upload.append('<input type="hidden" name="fileId[]" value=\''+idATT+'\'/>'); 
    49064910                                                 
    49074911                                                upload.find('.att-box-delete').click(function(){ 
     4912                                                        $("#content_id_"+currentTab+" .save").button("enable"); 
    49084913                                                        var idAttach = $(this).parent().find('input[name="fileId[]"]').val(); 
    49094914                                                        fileUploadMSG.find(' .attachments-list').find('input[value="'+idAttach+'"]').remove(); 
  • branches/2.4/expressoMail1_2/js/main.js

    r7558 r7560  
    20402040//It is verifying if the message was modified or not.  
    20412041var btnSaveVerify = function(){  
    2042     $("#content_id_"+currentTab+" .save").button("disable")  
     2042    $("#content_id_"+currentTab+" .save").button("disable");  
     2043                  
     2044    dataBtn = new Array(".to",".cc",".cco","input[name=input_subject]",".reply-to");  
    20432045  
    2044   
    2045     $("#content_id_"+currentTab+" .to").keydown(function() {    
     2046    for(var i in dataBtn){  
     2047      $("#content_id_"+currentTab+" "+dataBtn[i]).keydown(function() {    
    20462048        $("#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      } );  
     2049      });  
     2050        }   
    20512051  
    20522052    RichTextEditor.keydown(new_border_ID);  
     
    31173117    saveButtonDisabled = $("#content_id_"+ID).find(".save").button('option','disabled');  
    31183118        if(autoSaveControl.status[ID] === false && !saveButtonDisabled) 
    3119         save_msg(ID);          
     3119        save_msg(ID);  
     3120        refresh();          
    31203121} 
    31213122 
Note: See TracChangeset for help on using the changeset viewer.