diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js index 8144548..6312ecb 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -3159,14 +3159,13 @@ function removeHiddenContentLinks() { $(document).ready(function () { setTimeout(removeHiddenContentLinks, 500); }); -function removeDtrControlTabindex() { - setTimeout(function () { - $('#table1_wrapper .dtr-control').removeAttr('tabindex'); - }, 500); -} - -// 執行 -removeDtrControlTabindex(); +$(document).ready(function () { + $('#table1').on('draw.dt', function () { + setTimeout(function () { + $('#table1_wrapper .dtr-control').removeAttr('tabindex'); + }, 500); + }); +}); // 執行 member等高計算,目前改用flexbox故mark掉 by ika 20160105 // $(window).load(function() { // if ($('.index-member-3').length && $(window).width() > 992) {