Ignore:
Timestamp:
07/09/12 17:35:21 (12 years ago)
Author:
airton
Message:

Ticket #2950 - Tornar opcional a confirmacao de leitura de uma mensagem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.4.2-expresso3/expressoMail1_2/js/main.js

    r6745 r6747  
    534534                                        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)), ""); 
    535535 
    536                         if (confNotification) 
    537                                 cExecute ("$this.imap_functions.send_notification&notificationto="+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&notificationto="+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&notificationto="+msg_info.DispositionNotificationTo+"&date="+msg_info.udate+"&subject="+url_encode(msg_info.subject), handler_sendNotification);                                                               
     554                        } 
     555                                 
    538556                } 
    539557                //Change msg class to read. 
Note: See TracChangeset for help on using the changeset viewer.