Changeset 6860 for trunk/expressoMail1_2/js/main.js
- Timestamp:
- 07/24/12 10:27:50 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/main.js
r6856 r6860 534 534 var confNotification = confirm(get_lang("The sender:\n%1\nwaits your notification of reading. Do you want to confirm this?",Base64.decode(msg_info.DispositionNotificationTo)), ""); 535 535 536 if (confNotification) 537 cExecute ("$this.imap_functions.send_notification¬ificationto="+msg_info.DispositionNotificationTo+"&date="+msg_info.udate+"&subject="+url_encode(msg_info.subject), handler_sendNotification); 536 if (confNotification) { 537 /* Adequação a nova funcionalidade. Agora, a confirmação de leitura é uma preferência do usuário. */ 538 if(preferences.confirm_read_message) { 539 $.Zebra_Dialog(get_lang("Would you like to send the read receipt?"), { 540 'type': 'question', 541 'title': get_lang('Read receipt'), 542 'buttons': [get_lang("Yes"), get_lang("No")], 543 'overlay_opacity' : 0.5, 544 'onClose': function(caption) { 545 if(caption == get_lang("Yes")) 546 cExecute ("$this.imap_functions.send_notification¬ificationto="+msg_info.DispositionNotificationTo+"&date="+msg_info.udate+"&subject="+url_encode(msg_info.subject), handler_sendNotification); 547 else 548 write_msg(get_lang("Confirmation message is not sent")); 549 } 550 }); 551 } 552 else 553 cExecute ("$this.imap_functions.send_notification¬ificationto="+msg_info.DispositionNotificationTo+"&date="+msg_info.udate+"&subject="+url_encode(msg_info.subject), handler_sendNotification); 554 } 555 538 556 } 539 557 //Change msg class to read. … … 2689 2707 } 2690 2708 //stringEmail = content.find('[name="input_to"]').val(); 2709 2691 2710 var stringEmail = ""; 2692 2711 var stringToEmail = ""; … … 3491 3510 else{ 3492 3511 var filename = 'mensagens.zip'; 3493 if (data .match(/\.eml$/gi)) {3494 filename = 'fonte_da_mensagem.eml';3512 if (data[0].match(/\.eml$/gi)) { 3513 filename = data[1]+'.eml'; 3495 3514 } 3496 3515 download_attachments(null, null, data, null,null,filename); … … 3869 3888 wfolders.makeWindow('null','import'); 3870 3889 } 3871 function import_calendar(data){ 3872 var import_url = '$this.db_functions.import_vcard&msg_folder='+data; 3873 var logUser; 3874 var up; 3875 var owner; 3876 3877 //Verifica o contexto de importação 3878 var decodeOwner = function(){ 3879 3890 3891 function decodeOwner(){ 3880 3892 owner = User.me.id; 3881 3893 var imapBox = openTab.imapBox[currentTab].split(cyrus_delimiter); … … 3883 3895 var user = DataLayer.get('user', {filter: ['=','uid',imapBox[1]]}); 3884 3896 owner = $.isArray(user) ? user[0].id : user.id; 3885 } 3886 3897 } 3887 3898 return owner; 3888 } 3889 3899 } 3900 function import_calendar(data){ 3901 var import_url = '$this.db_functions.import_vcard&msg_folder='+data; 3902 var logUser; 3903 var up; 3904 var owner; 3890 3905 function handler_import_calendar(data){ 3891 3906 if(data === true){
Note: See TracChangeset
for help on using the changeset viewer.