Changeset 5844 for trunk/prototype/modules/mail/js/foldertree.js
- Timestamp:
- 03/28/12 17:28:16 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/modules/mail/js/foldertree.js
r5813 r5844 11 11 element.children = new Array(); 12 12 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 } */21 13 return true; 22 14 } else if (ok = unorphanize(root[i].children, element)) { … … 419 411 } 420 412 $(".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")); 433 414 }else if( event.keyCode == 27){ 434 415 draw_new_tree_folder();
Note: See TracChangeset
for help on using the changeset viewer.