From 9ffd25b52c2021f35e8e4d8b91a36eebdaf73500 Mon Sep 17 00:00:00 2001 From: martinaHanusova Date: Fri, 19 May 2017 23:07:50 +0200 Subject: [PATCH] Fix destroy method creating two tfoots When destroy is called on table with tfoot previously created, tfoot is copied from fixed column and body section both. --- jquery.fixedheadertable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.fixedheadertable.js b/jquery.fixedheadertable.js index f1d533d..101912c 100644 --- a/jquery.fixedheadertable.js +++ b/jquery.fixedheadertable.js @@ -286,7 +286,7 @@ $self.insertBefore($wrapper) .removeAttr('style') - .append($wrapper.find('tfoot')) + .append($wrapper.find('.fht-fixed-body tfoot')) .removeClass('fht-table fht-table-init') .find('.fht-cell') .remove();