Merge pull request #383 from harryxu/patch1

Count table head th length after ajaxProcessing.
This commit is contained in:
Rob G 2013-09-30 07:36:48 -07:00
commit 83263a9b37

View File

@ -201,8 +201,8 @@
var i, j, hsh, $f, $sh, th, d, l, $err, rr_count,
$t = $(table),
tc = table.config,
hl = $t.find('thead th').length, tds = '',
result = c.ajaxProcessing(data, table) || [ 0, [] ],
hl = $t.find('thead th').length, tds = '',
// allow [ total, rows, headers ] or [ rows, total, headers ]
t = isNaN(result[0]) && !isNaN(result[1]);
@ -635,4 +635,4 @@ $.fn.extend({
tablesorterPager: $.tablesorterPager.construct
});
})(jQuery);
})(jQuery);