Ignore:
Timestamp:
03/28/13 16:24:07 (11 years ago)
Author:
marcosw
Message:

Ticket #3331 - Correção para inconsistência ao salvar mensagem e remover anexos

File:
1 edited

Legend:

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

    r7948 r8063  
    575575} 
    576576 
    577 MailArchiver.prototype.unarchieveToAttach = function (folder, new_folder, msgs_number){ 
    578     try{ 
     577MailArchiver.prototype.unarchieveToAttach = function (folder, new_folder, msgs_number, callback){ 
     578    try{ 
     579 
     580        if(typeof callback !== 'function') callback = function(){}; 
    579581 
    580582        if(typeof(expresso_mail_archive.idMsgsToAttach) == "undefined"){ 
     
    601603                (new_folder != null)?expresso_mail_archive.unarchievenewfolder = new_folder:expresso_mail_archive.unarchievenewfolder='INBOX'; 
    602604                 
    603                 expresso_mail_archive.unarchieveToAttachHandler(); 
     605                expresso_mail_archive.unarchieveToAttachHandler(callback); 
    604606                 
    605607                if(currentTab.toString().indexOf("_r") != -1){ 
     
    621623} 
    622624 
    623 MailArchiver.prototype.unarchieveToAttachHandler = function(){ 
    624     try{ 
    625         var email = mail_archive_protocol+'://'+mail_archive_host+':'+mail_archive_port+'/mail/' + expresso_mail_archive.session.id +'/'+ expresso_mail_archive.folder.path + '/'+ expresso_mail_archive.messageToAttach + '.eml';     
     625MailArchiver.prototype.unarchieveToAttachHandler = function(uCallback){ 
     626    try{ 
     627         var email = mail_archive_protocol+'://'+mail_archive_host+':'+mail_archive_port+'/mail/' + expresso_mail_archive.session.id +'/'+ expresso_mail_archive.folder.path + '/'+ expresso_mail_archive.messageToAttach + '.eml';     
    626628     
    627629        //Creates a new object to unarchive messages. It's a CXF Add-on CORS component 
     
    710712                    expresso_mail_archive.idMsgsToAttach.push(data.idsMsg); 
    711713                    handler_unarchive(data); 
     714                    uCallback(data); 
    712715                }, 
    713716                async: false, 
Note: See TracChangeset for help on using the changeset viewer.