Changeset 4597


Ignore:
Timestamp:
06/11/11 10:31:48 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #1998 - Erro na listagem de istar mensagens não lidas no IE

File:
1 edited

Legend:

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

    r4582 r4597  
    11891189function showEmptyBoxMsg(tbody_element) { 
    11901190        document.getElementById("table_message_header_box_"+numBox).emptyBody = true; 
    1191         var colgr_element = document.getElementById("colgroup_main_"+numBox); 
    1192         if (colgr_element) 
    1193                 tbody_element.parentNode.removeChild(colgr_element); // remove colgroup so it does not affect colspan (mainly IE) 
    1194         tr_info = document.createElement("TR"); 
    1195         td_info = document.createElement("TD"); 
    1196         h3_info = document.createElement("H3"); 
    1197         td_info.setAttribute("background", "#FFF"); 
    1198         td_info.setAttribute("colspan",colSizes[0].length); 
    1199         h3_info.style.padding = "10px"; 
    1200         h3_info.setAttribute("id", "msg_info"); 
    1201         h3_info.align = "center"; 
    1202         h3_info.innerHTML = get_lang("This mail box is empty"); 
    1203         td_info.appendChild(h3_info); 
    1204         tr_info.appendChild(td_info); 
    1205         tbody_element.appendChild(tr_info); 
     1191        var div_pasta = document.getElementById("div_msg_info"); 
     1192        if (!div_pasta){        
     1193            div_info = document.createElement("div"); 
     1194            div_info.setAttribute("id", "div_msg_info"); 
     1195            div_info.setAttribute("background", "#FFF"); 
     1196            h3_info = document.createElement("h3"); 
     1197            h3_info.style.padding = "10px"; 
     1198            h3_info.setAttribute("id", "msg_info"); 
     1199            h3_info.align = "center"; 
     1200            h3_info.innerHTML = get_lang("This mail box is empty"); 
     1201            div_info.appendChild(h3_info); 
     1202            tbody_element.parentNode.parentNode.appendChild(div_info); 
     1203        } 
    12061204} 
    12071205 
Note: See TracChangeset for help on using the changeset viewer.