From aefc651e1092fbb230bdd87dcce1a8b4d2db2505 Mon Sep 17 00:00:00 2001 From: Patrick Mutwiri Date: Thu, 17 Sep 2015 13:56:40 +0300 Subject: [PATCH] Update tableExport.js Look for the 'th' tag inside 'tr', so as to have a header if the user didn't use 'thead' tag in the table. --- tableExport.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tableExport.js b/tableExport.js index 1bfaa0fc..b04e4bcf 100644 --- a/tableExport.js +++ b/tableExport.js @@ -294,7 +294,7 @@ THE SOFTWARE.*/ // Header var startColPosition=defaults.pdfLeftMargin; - $(el).find('thead').find('tr').each(function() { + $(el).find('tr').each(function() { $(this).filter(':visible').find('th').each(function(index,data) { if ($(this).css('display') != 'none'){ if(defaults.ignoreColumn.indexOf(index) == -1){