From 82178716507d35a12aa50b3ec6f9270bf5f70be5 Mon Sep 17 00:00:00 2001 From: Mottie Date: Tue, 29 Apr 2014 07:08:21 -0500 Subject: [PATCH] Get rid of widget init delay filter widget was not seeing the table-initialized event --- js/jquery.tablesorter.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/js/jquery.tablesorter.js b/js/jquery.tablesorter.js index 1270a1de..9f851441 100644 --- a/js/jquery.tablesorter.js +++ b/js/jquery.tablesorter.js @@ -1021,9 +1021,7 @@ setHeadersCss(table); if (c.initWidgets) { // apply widget format - setTimeout(function(){ - ts.applyWidget(table, false); - }, 0); + ts.applyWidget(table, false); } } @@ -1052,7 +1050,6 @@ if (typeof c.initialized === 'function') { c.initialized(table); } }; - // computeTableHeaderCellIndexes from: // http://www.javascripttoolbox.com/lib/table/examples.php // http://www.javascripttoolbox.com/temp/table_cellindex.html