Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -827,15 +827,12 @@ function getLanguage() {
*/
$(document).ready(function () {
$('table').each(function () {
var $table = $(this);
$table.find('th').each(function (index) {
var $th = $(this);
var text = $th.text();
if (text === '') {
return;
}
$table.find('td:nth-child(' + (index + 1) + ')')
.attr('data-label', text);
var $columns = $(this).find('td:not(.collapse-phone)');
var $headers = $(this).find('th');
$headers.each(function (index) {
$columns.filter(function (counter) {
return index === counter % $headers.length;
}).attr('data-label', $(this).text());
});
});
});
Expand Down
4 changes: 0 additions & 4 deletions styles/supported-versions.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ table.standard tr.stable td:first-child {
}

table.standard td.collapse-phone {
padding: 0;
}

table.standard td.collapse-phone * {
display: none;
}
}
Expand Down