From 96d0b163ce07deaaa8998f09fe5cb9ba37c57aeb Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Sat, 7 May 2011 10:37:22 +0100 Subject: [PATCH] Fix: When a column of only TH elements is used in the table it would cause indexing problems for the width calculation due to a getElementsByTagName('td'). Now use the _fnGetTdNodes (slightly modified) to do this. --- media/js/jquery.dataTables.js | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index dff238e3..445cf93f 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -5542,7 +5542,7 @@ iCorrector++; } } - + /* Find the biggest td for each column and put it into the table */ for ( i=0 ; i