Ignore:
Timestamp:
03/28/12 17:28:16 (12 years ago)
Author:
marcieli
Message:

Ticket #2503 - Resolvido para exclusão das pastas Sent, Drafts e Trash das pastas compartilhadas.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/modules/mail/js/foldertree.js

    r5813 r5844  
    1111                        element.children = new Array();  
    1212                        root[i].children.push(element); 
    13 /*                      root[i]['children_unseen'] = (root[i]['children_unseen']? root[i]['children_unseen'] : 0)+ parseInt(element.messageCount.unseen); 
    14                         console.log("=== INI ==="); 
    15                         console.log(root[i].id); 
    16                         console.log(root[i].children.length); 
    17                         console.log("=== END ==="); 
    18                         for(var k=0; k<root[i].children.length; k++){ 
    19                                 root[i]['children_unseen'] += (root[i].children[k]['children_unseen'] ? root[i].children[k]['children_unseen'] : 0); 
    20                         } */ 
    2113                        return true; 
    2214                } else if (ok = unorphanize(root[i].children, element)) { 
     
    419411                                                        } 
    420412                                                        $(".new_folder").parent().addClass("folders-loading"); 
    421                                                         $.ajax({ 
    422                                                                 url : "controller.php?action=$this.imap_functions.create_mailbox", 
    423                                                                 type : "POST", 
    424                                                                 data : "newp="+($(this).val() != "" ? $(this).val() : get_lang("New Folder"))+"&base_path="+(selected_li.attr('id')? selected_li.attr('id') : "INBOX"), 
    425                                                                 success : function(data){ 
    426                                                                         data = connector.unserialize(data); 
    427                                                                         if(data == "Mailbox already exists"){ 
    428                                                                                 write_msg(get_lang("Mailbox already exists")); 
    429                                                                         } 
    430                                                                         cExecute("$this.imap_functions.get_folders_list&onload=true", update_menu); 
    431                                                                 } 
    432                                                         }); 
     413                                                        create_new_folder(($(this).val() != "" ? $(this).val() : get_lang("New Folder")), (selected_li.attr('id')? selected_li.attr('id') : "INBOX")); 
    433414                                                }else if( event.keyCode == 27){ 
    434415                                                        draw_new_tree_folder(); 
Note: See TracChangeset for help on using the changeset viewer.