We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06f5c3a commit f94c14eCopy full SHA for f94c14e
1 file changed
js/install.js
@@ -2,10 +2,12 @@
2
var options = INSTALL_OPTIONS;
3
4
Array.prototype.forEach.call(document.querySelectorAll('table'), function(table){
5
+ var firstTBodyRow, tHead;
6
+
7
try {
8
// If there’s no tHead but the first tBody row contains ths, create a tHead and move that row into it.
- if (!table.tHead && (var firstTBodyRow = table.tBodies[0].rows[0]).children[0].tagName === 'TH') {
- var tHead = document.createElement('thead');
9
+ if (!table.tHead && (firstTBodyRow = table.tBodies[0].rows[0]).children[0].tagName === 'TH') {
10
+ tHead = document.createElement('thead');
11
tHead.appendChild(firstTBodyRow);
12
table.insertBefore(tHead, table.firstChild);
13
}
0 commit comments