Changeset 8063 for trunk/expressoMail1_2/js/mail_archiver.js
- Timestamp:
- 03/28/13 16:24:07 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/mail_archiver.js
r7948 r8063 575 575 } 576 576 577 MailArchiver.prototype.unarchieveToAttach = function (folder, new_folder, msgs_number){ 578 try{ 577 MailArchiver.prototype.unarchieveToAttach = function (folder, new_folder, msgs_number, callback){ 578 try{ 579 580 if(typeof callback !== 'function') callback = function(){}; 579 581 580 582 if(typeof(expresso_mail_archive.idMsgsToAttach) == "undefined"){ … … 601 603 (new_folder != null)?expresso_mail_archive.unarchievenewfolder = new_folder:expresso_mail_archive.unarchievenewfolder='INBOX'; 602 604 603 expresso_mail_archive.unarchieveToAttachHandler( );605 expresso_mail_archive.unarchieveToAttachHandler(callback); 604 606 605 607 if(currentTab.toString().indexOf("_r") != -1){ … … 621 623 } 622 624 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';625 MailArchiver.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'; 626 628 627 629 //Creates a new object to unarchive messages. It's a CXF Add-on CORS component … … 710 712 expresso_mail_archive.idMsgsToAttach.push(data.idsMsg); 711 713 handler_unarchive(data); 714 uCallback(data); 712 715 }, 713 716 async: false,
Note: See TracChangeset
for help on using the changeset viewer.