Changeset 4875


Ignore:
Timestamp:
08/01/11 10:02:58 (10 years ago)
Author:
fernando-alberto
Message:

Ticket #1269 - Desenvolvimento da nova solucao de arquivamento local MailArchiver?, adaptando para QueryConfig?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/expressoMail1_2/MailArchiver/2.2/expressoMail1_2/js/messages_controller.js

    r4872 r4875  
    1616                        expresso_mail_archive.currentfolder = baseFolder; 
    1717                        expresso_mail_archive.drawdata = drawinginfo; 
    18                         if(tree_name == 'tree_folders') //only the 'tree_folders' must show messages. 'folders_tree' are just for managment operation 
     18                        //window.alert('dumping data:\n\n' + 'folder = ' + baseFolder + '\nmsg_range_begin = ' + msg_range_begin + '\nemails_per_page = ' + emails_per_page + '\nsort_box_type = ' + sort_box_type + '\nsearch_box_type = ' + search_box_type + '\nsort_box_reverse = ' + sort_box_reverse + '\npreview_msg_subject = ' + preview_msg_subject + '\npreview_msg_tip = ' + preview_msg_tip + '\ntree = ' + tree_name); 
     19                        if(tree_name == 'tree_folders'){ //only the 'tree_folders' must show messages. 'folders_tree' are just for managment operation 
     20                            /*var dfs = new Array(); 
     21                            dfs["folder"] = baseFolder; 
     22                            dfs["msg_range_begin"] = msg_range_begin; 
     23                            dfs["emails_per_page"] = emails_per_page; 
     24                            dfs["sort_box_type"] = sort_box_type; 
     25                            dfs["sort_box_reverse"] = sort_box_reverse; 
     26                            dfs["preview_msg_subject"] = preview_msg_subject; 
     27                            dfs["preview_msg_tip"] = preview_msg_tip; 
     28                            dfs["call_back"] = call_back; 
     29                            dfs["tree_name"] = tree_name; 
     30                            */ 
     31                            var dfs = new Array(baseFolder,msg_range_begin,emails_per_page,sort_box_type,sort_box_reverse,preview_msg_subject,preview_msg_tip,call_back,tree_name); 
     32                            expresso_mail_archive.queryconfig.setDefaults(dfs); 
    1933                            expresso_mail_archive.listMessages(); 
     34                             
     35                        } 
    2036                }else { 
    2137                        cExecute ("$this.imap_functions.get_range_msgs2&folder="+folder+"&msg_range_begin="+msg_range_begin+"&msg_range_end="+emails_per_page+"&sort_box_type="+sort_box_type+ "&search_box_type="+ search_box_type +"&sort_box_reverse="+sort_box_reverse+"", call_back); 
Note: See TracChangeset for help on using the changeset viewer.