play.html: no header in transposed table

This commit is contained in:
vdimir 2022-04-29 20:00:22 +02:00
parent 277afd0c48
commit ea4e9db3da
No known key found for this signature in database
GPG Key ID: 6EE4CE2BEDC51862

View File

@ -620,18 +620,6 @@
function renderTableTranspose(response)
{
let thead = document.createElement('thead');
let appendHeader = (text) => {
let th = document.createElement('th');
const name = document.createTextNode(text);
th.appendChild(name);
thead.appendChild(th);
};
appendHeader('column')
for (let row_idx in response.data) {
appendHeader(row_idx)
}
let tbody = document.createElement('tbody');
for (let col_idx in response.meta) {
let tr = document.createElement('tr');
@ -656,7 +644,6 @@
}
let table = document.getElementById('data-table');
table.appendChild(tbody);
table.appendChild(thead);
}
function renderTable(response)