Changeset 7234 for sandbox/2.5.0-expresso1/expressoMail1_2/js/main.js
- Timestamp:
- 09/18/12 11:31:47 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.5.0-expresso1/expressoMail1_2/js/main.js
r7204 r7234 3771 3771 } 3772 3772 3773 function empty_trash_imap(shared, button ){3773 function empty_trash_imap(shared, button, type){ 3774 3774 if(shared){ 3775 3775 var folder_part = $(button).parents("li:first").attr("id").split(cyrus_delimiter); … … 3811 3811 'overlay_opacity' : 0.5, 3812 3812 'onClose': function(caption) { 3813 3813 3814 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 } 3815 3821 } 3816 3822 } … … 3818 3824 } 3819 3825 3820 function empty_spam_imap(shared, button ){3826 function empty_spam_imap(shared, button, type){ 3821 3827 if(shared){ 3822 3828 var folder_part = $(button).parents("li:first").attr("id").split(cyrus_delimiter); … … 3859 3865 'onClose': function(caption) { 3860 3866 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 } 3862 3873 } 3863 3874 }
Note: See TracChangeset
for help on using the changeset viewer.