Ignore:
Timestamp:
02/29/12 16:15:37 (12 years ago)
Author:
marcieli
Message:

Ticket #2486 - Corrigidos mais alguns bugs ao marcar/sinalizar e selecionar msgs da busca.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/js/main.js

    r5584 r5588  
    12901290        var aba = document.getElementById('content_id_'+currentTab); 
    12911291        var selected_messages = ""; 
    1292         jQuery(function() { 
    12931292            jQuery("#"+aba.id+" tr").each(function(i, main_list) {  
    12941293                var check_box = main_list.firstChild.firstChild; 
     
    12981297            });               
    12991298              
    1300         }); 
    13011299        if (selected_messages != ""){ 
    13021300                if(selected_messages.indexOf(',') == 0) 
     
    13121310        var aba = document.getElementById('content_id_'+currentTab); 
    13131311        var selected_messages = ""; 
    1314         jQuery(function() { 
    1315             jQuery("#"+aba.id+" tr").each(function(i, main_list) {  
    1316                 var check_box = main_list.firstChild.firstChild; 
    1317                         if(check_box && check_box.checked) { 
    1318                                 selected_messages += main_list.role + ',' ; 
    1319                         }; 
    1320             });               
    1321               
    1322         }); 
     1312        jQuery("#"+aba.id+" tr").each(function(i, main_list) {  
     1313        var check_box = main_list.firstChild.firstChild; 
     1314                if(check_box && check_box.checked) { 
     1315                        selected_messages += main_list.role + ',' ; 
     1316                }; 
     1317        });               
     1318 
    13231319        if (selected_messages != ""){ 
    13241320                if(selected_messages.indexOf(',') == 0) 
     
    33493345 
    33503346function select_all_search_messages(select, aba){ 
    3351            jQuery(function() { 
    3352         if(select){ 
    3353                         jQuery("#"+aba+" tr").each(function(i, o) { 
    3354                          
    3355                                 o.firstChild.firstChild.checked = true; 
    3356                                 add_className(o, 'selected_msg'); 
    3357                         });              
    3358                 }else{ 
    3359                         jQuery("#"+aba+" tr").each(function(i, o) { 
    3360                          
    3361                                 o.firstChild.firstChild.checked = false; 
    3362                                 remove_className(o, 'selected_msg'); 
    3363                         }); 
    3364         } 
    3365         }); 
    3366  
    3367          
    3368  
     3347 
     3348        if(select){ 
     3349                jQuery("#"+aba+" tr").each(function(i, o) { 
     3350                 
     3351                        o.firstChild.firstChild.checked = true; 
     3352                        add_className(o, 'selected_msg'); 
     3353                });              
     3354        }else{ 
     3355                jQuery("#"+aba+" tr").each(function(i, o) { 
     3356                 
     3357                        o.firstChild.firstChild.checked = false; 
     3358                        remove_className(o, 'selected_msg'); 
     3359                }); 
     3360        } 
    33693361} 
    33703362 
Note: See TracChangeset for help on using the changeset viewer.