Changeset 1362 for trunk


Ignore:
Timestamp:
02/04/18 09:01:34 (12 months ago)
Author:
gogo
Message:

Small fix TableOperations? related to adding th

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/TableOperations/TableOperations.js

    r1358 r1362  
    132132  // helper function that clears the content in a table row 
    133133  function clearRow(tr) { 
    134     var tds = tr.getElementsByTagName("td").append(tr.getElementsByTagName("th")); 
     134    [ 'td', 'th' ].forEach(function(e) 
     135    { 
     136    var tds = tr.getElementsByTagName(e); 
    135137    for (var i = tds.length; --i >= 0;) { 
    136138      var td = tds[i]; 
     
    138140      td.innerHTML = mozbr; 
    139141    } 
     142    }); 
    140143  } 
    141144 
Note: See TracChangeset for help on using the changeset viewer.