Changeset 4813


Ignore:
Timestamp:
07/19/11 14:21:15 (13 years ago)
Author:
roberto.santosjunior
Message:

Ticket #1820 - Cartão de informações do usuário não aparece.r4677

File:
1 edited

Legend:

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

    r4810 r4813  
    816816        var tbM = getMessagesTable(thisCell); 
    817817        var trM = tbM.rows; 
     818        var _mouse_over; 
     819        var _mouse_out; 
     820        var _cell; 
    818821        for (var r=0;r<trM.length;r++) { 
    819822                for (var c=0;c<trM[r].cells.length;c++) { 
    820                         trM[r].cells[c].setAttribute("width",colSizes[tbl][c]); 
     823                        _cell = trM[r].cells[c]; 
     824                        _cell.setAttribute("width",colSizes[tbl][c]); 
    821825                        if (is_mozilla && !is_webkit) { 
    822826                                if (!emptyBody) { 
    823                                 document.getElementById("colgroup_main_"+numBox).childNodes[c].setAttribute("width",colSizes[tbl][c]); 
     827                                        document.getElementById("colgroup_main_"+numBox).childNodes[c].setAttribute("width",colSizes[tbl][c]); 
    824828                                } 
    825829                                document.getElementById("colgroup_head_"+numBox).childNodes[c].setAttribute("width",colSizes[tbl][c]); 
    826830                                if (tbH.rows[0].cells[c].className=="th_resizable") { 
    827                                         trM[r].cells[c].innerHTML = trM[r].cells[c].innerHTML; // stupid fix for FF to redraw cell content 
    828                                         tbH.rows[0].cells[c].innerHTML = tbH.rows[0].cells[c].innerHTML; // another stupid fix for FF to redraw cell content 
    829                         } 
     831                                        // lots of stupid fixes for FF to redraw cell content 
     832                                        if (_cell.childNodes[1]) { 
     833                                                _mouse_over = _cell.childNodes[1].onmouseover; 
     834                                                _mouse_out = _cell.childNodes[1].onmouseout; 
     835                                        } 
     836                                        _cell.innerHTML = trM[r].cells[c].innerHTML; 
     837                                        if (_cell.childNodes[1]) { 
     838                                                _cell.childNodes[1].onmouseover = _mouse_over; 
     839                                                _cell.childNodes[1].onmouseout = _mouse_out; 
     840                                        } 
     841                                        tbH.rows[0].cells[c].innerHTML = tbH.rows[0].cells[c].innerHTML; 
     842                                } 
    830843                        } 
    831844                        else { 
    832                                 tbH.rows[0].cells[c].setAttribute("width",trM[r].cells[c].offsetWidth); 
     845                                tbH.rows[0].cells[c].setAttribute("width",_cell.offsetWidth); 
    833846                        } 
    834847                } 
Note: See TracChangeset for help on using the changeset viewer.