Ignore:
Timestamp:
07/24/12 10:27:50 (12 years ago)
Author:
marcosw
Message:

Ticket #2947 - Merge do branch das novas funcionalidades para o trunk

File:
1 edited

Legend:

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

    r6856 r6860  
    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. 
     
    26892707        } 
    26902708        //stringEmail = content.find('[name="input_to"]').val(); 
     2709 
    26912710        var stringEmail = ""; 
    26922711        var stringToEmail = ""; 
     
    34913510                else{ 
    34923511                        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';  
    34953514                        }  
    34963515                        download_attachments(null, null, data, null,null,filename); 
     
    38693888                wfolders.makeWindow('null','import'); 
    38703889} 
    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 
     3891function decodeOwner(){ 
    38803892        owner = User.me.id; 
    38813893        var imapBox = openTab.imapBox[currentTab].split(cyrus_delimiter); 
     
    38833895            var user = DataLayer.get('user', {filter: ['=','uid',imapBox[1]]});              
    38843896            owner = $.isArray(user) ? user[0].id : user.id; 
    3885         } 
    3886          
     3897        }        
    38873898        return owner; 
    3888     } 
    3889      
     3899} 
     3900function import_calendar(data){ 
     3901    var import_url = '$this.db_functions.import_vcard&msg_folder='+data; 
     3902    var logUser; 
     3903    var up; 
     3904    var owner;    
    38903905    function handler_import_calendar(data){ 
    38913906            if(data === true){ 
Note: See TracChangeset for help on using the changeset viewer.