diff --git a/js/common.js b/js/common.js index a70f81236f..0ea0fdc005 100644 --- a/js/common.js +++ b/js/common.js @@ -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()); }); }); }); diff --git a/styles/supported-versions.css b/styles/supported-versions.css index f152bcc94c..ec9477ab6e 100644 --- a/styles/supported-versions.css +++ b/styles/supported-versions.css @@ -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; } }