diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js index 14a7dc7..4584898 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -766,6 +766,20 @@ $(function() { $(this).attr("style", newStyle); } }); + $(function() { + function fixThColspanScope() { + setTimeout(function() { + $('th[colspan]').each(function() { + var colspan = parseInt($(this).attr('colspan'), 10); + if (colspan >= 2) { + $(this).attr('scope', 'colgroup'); + } + }); + }, 500); + } + + fixThColspanScope(); + }); // //表格scope // $("table").each(function() { // $(this).find("tr").each(function(rowIndex) {