Ignore:
Timestamp:
09/18/12 11:31:47 (12 years ago)
Author:
thiago
Message:

Ticket #3088 - Implementado a funcionalidade de excluir todas as mensagens na spam e trash

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.5.0-expresso1/expressoMail1_2/js/main.js

    r7204 r7234  
    37713771} 
    37723772 
    3773 function empty_trash_imap(shared, button){ 
     3773function empty_trash_imap(shared, button, type){ 
    37743774        if(shared){ 
    37753775                var folder_part = $(button).parents("li:first").attr("id").split(cyrus_delimiter); 
     
    38113811                'overlay_opacity' : 0.5, 
    38123812                'onClose':  function(caption) { 
     3813 
    38133814                        if(caption == get_lang("Yes")){ 
    3814                                 cExecute ("$this.imap_functions.empty_folder&clean_folder="+"imapDefaultTrashFolder"+(shared ? "&shared="+folder : ""), handler_empty_trash); 
     3815                if(type.id == "local_messages_trash"){ 
     3816                    expresso_mail_archive.deleteAllMessages(type.id); 
     3817                    cExecute("$this.imap_functions.get_folders_list&onload=true", update_menu); 
     3818                } else { 
     3819                    cExecute ("$this.imap_functions.empty_folder&clean_folder="+"imapDefaultTrashFolder"+(shared ? "&shared="+folder : ""), handler_empty_trash); 
     3820                }  
    38153821                        } 
    38163822                } 
     
    38183824} 
    38193825 
    3820 function empty_spam_imap(shared, button){ 
     3826function empty_spam_imap(shared, button, type){ 
    38213827        if(shared){ 
    38223828                var folder_part = $(button).parents("li:first").attr("id").split(cyrus_delimiter); 
     
    38593865                'onClose':  function(caption) { 
    38603866                        if(caption == get_lang("Yes")){ 
    3861                                 cExecute ("$this.imap_functions.empty_folder&clean_folder="+"imapDefaultSpamFolder"+(shared ? "&shared="+folder : ""), handler_empty_spam); 
     3867                if(type.id == "local_messages_spam"){  
     3868                    expresso_mail_archive.deleteAllMessages(type.id); 
     3869                    cExecute("$this.imap_functions.get_folders_list&onload=true", update_menu); 
     3870                } else { 
     3871                    cExecute ("$this.imap_functions.empty_folder&clean_folder="+"imapDefaultSpamFolder"+(shared ? "&shared="+folder : ""), handler_empty_spam); 
     3872                }  
    38623873                        } 
    38633874                } 
Note: See TracChangeset for help on using the changeset viewer.