Ignore:
Timestamp:
09/18/12 14:38:22 (12 years ago)
Author:
douglas
Message:

Ticket #3108 - Corrigir chamada php na melhoria de selecao de mensagens

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/expressoMail1_2/js/draw_api.js

    r7228 r7236  
    540540                } 
    541541                $.ajax({                         
    542                         url: "controller.php?" + $.param( {action: "$this.imap_functions.get_range_msgs3",  
     542                        url: "controller.php?" + $.param( {action: "$this.imap_functions.getMessagesIds",  
    543543                                folder: folder, 
    544                                  msg_range_begin: "0", 
    545                                  msg_range_end: "0",                                     
    546544                                sort_box_type: "SORTARRIVAL",  
    547545                                search_box_type: search_box_type, 
     
    553551                                        var _data = {}; 
    554552                                        $.each(data,function(index,value){ 
    555                                                 if (data[index] && data[index].msg_number){ 
    556                                                         _data[data[index].msg_number] = data[index].msg_number; 
     553                                                if (value){ 
     554                                                        _data[index] = value; 
    557555                                                } 
    558556                                        }); 
    559557                                        populateSelectedMsgs(_data); 
    560                                         _data = {}; 
    561558                                 
    562559                                } 
     
    21162113        if (typeof(clean_selected) == "undefined"){      
    21172114                $.ajax({                         
    2118                         url: "controller.php?" + $.param( {action: "$this.imap_functions.get_range_msgs3",  
     2115                        url: "controller.php?" + $.param( {action: "$this.imap_functions.getMessagesIds",  
    21192116                                folder: get_current_folder(), 
    2120                                  msg_range_begin: "0", 
    2121                                  msg_range_end: "0",                                     
    21222117                                sort_box_type: "SORTARRIVAL",  
    21232118                                search_box_type: search_box_type, 
     
    21292124                                        var _data = {}; 
    21302125                                        $.each(data,function(index,value){ 
    2131                                                 if (data[index] && data[index].msg_number){ 
    2132                                                         _data[data[index].msg_number] = data[index].msg_number; 
     2126                                                if (value){ 
     2127                                                        _data[index] = value; 
    21332128                                                } 
    21342129                                        }); 
    21352130                                        populateSelectedMsgs(_data); 
    2136                                         _data = {}; 
    2137                                  
    21382131                                } 
    21392132                        }, 
Note: See TracChangeset for help on using the changeset viewer.