Changeset 7526 for trunk


Ignore:
Timestamp:
11/16/12 16:35:59 (11 years ago)
Author:
thiago
Message:

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

Location:
trunk/expressoMail1_2/js
Files:
2 edited

Legend:

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

    r7525 r7526  
    47874787        }).click(function(){ 
    47884788                save_msg(ID); 
     4789        refresh(); 
    47894790        }) 
    47904791        //BOTAO CONF. LEITURA 
     
    48864887                                var upload = $(DataLayer.render("../prototype/modules/mail/templates/attachment_add_itemlist.ejs", {file : attach}));                            
    48874888                                upload.find('.att-box-delete').click(function(){ 
     4889                    $("#content_id_"+currentTab+" .save").button("enable"); 
    48884890                                        var idAttach = $(this).parent().find('input[name="fileId[]"]').val(); 
    48894891                                        fileUploadMSG.find(' .attachments-list').find('input[value="'+idAttach+'"]').remove(); 
     
    49524954                }, 
    49534955                done: function(e, data){ 
     4956            $("#content_id_"+currentTab+" .save").button("enable"); 
    49544957            var attach_box = fileUploadMSG.find('.att-box-loading:first').parents('.att-box'); 
    49554958            var attach = { 
     
    50675070                                                attach.fileSize = formatBytes(onceOpenedMessages[folder_name][message_number].size); 
    50685071                                                var upload = $(DataLayer.render("../prototype/modules/mail/templates/attachment_add_itemlist.ejs", {file : attach})); 
    5069                                                 upload.find('.att-box-loading').remove(); 
     5072                                                $("#content_id_"+currentTab+" .save").button("enable"); 
     5073                        upload.find('.att-box-loading').remove(); 
    50705074                                                upload.append('<input type="hidden" name="fileId[]" value=\''+idATT+'\'/>'); 
    50715075                                                 
    50725076                                                upload.find('.att-box-delete').click(function(){ 
     5077                            $("#content_id_"+currentTab+" .save").button("enable"); 
    50735078                                                        var idAttach = $(this).parent().find('input[name="fileId[]"]').val(); 
    50745079                                                        fileUploadMSG.find(' .attachments-list').find('input[value="'+idAttach+'"]').remove(); 
  • trunk/expressoMail1_2/js/main.js

    r7525 r7526  
    22482248//It is verifying if the message was modified or not. 
    22492249var btnSaveVerify = function(){ 
    2250     $("#content_id_"+currentTab+" .save").button("disable") 
    2251  
    2252  
    2253     $("#content_id_"+currentTab+" .to").keydown(function() {   
     2250    $("#content_id_"+currentTab+" .save").button("disable"); 
     2251 
     2252    dataBtn = new Array(".to",".cc",".cco","input[name=input_subject]",".reply-to"); 
     2253 
     2254    for(var i in dataBtn){ 
     2255      $("#content_id_"+currentTab+" "+dataBtn[i]).keydown(function() {   
    22542256        $("#content_id_"+currentTab+" .save").button("enable"); 
    2255      } ); 
    2256     $("#content_id_"+currentTab+" input[name=input_subject]").keydown(function() {   
    2257         $("#content_id_"+currentTab+" .save").button("enable"); 
    2258      } ); 
     2257      }); 
     2258    } 
    22592259 
    22602260    RichTextEditor.keydown(new_border_ID); 
     
    33933393        saveButtonDisabled = $("#content_id_"+ID).find(".save").button('option','disabled'); 
    33943394    if(autoSaveControl.status[ID] === false && !saveButtonDisabled) 
    3395         save_msg(ID);          
     3395        save_msg(ID); 
     3396    refresh(); 
    33963397} 
    33973398 
Note: See TracChangeset for help on using the changeset viewer.